jrun.servlet
Class FilterMapping

java.lang.Object
  |
  +--jrun.servlet.FilterMapping

public class FilterMapping
extends java.lang.Object

Represents a single Filter mapping

Author:
Karl Moss

Field Summary
protected  FilterObject filter
           
protected  java.lang.String map
           
static int SERVLET_NAME
           
protected  int type
           
static int URL_MAPPING
           
 
Constructor Summary
FilterMapping(java.lang.String map, int type, FilterObject filter)
           
 
Method Summary
 boolean applyMapping(java.lang.String requestPath, java.lang.String servletName)
          Determine if this mapping should be applied to the given request.
 javax.servlet.Filter getFilter()
          Gets the Filter object for this mapping
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

URL_MAPPING

public static final int URL_MAPPING

SERVLET_NAME

public static final int SERVLET_NAME

map

protected java.lang.String map

type

protected int type

filter

protected FilterObject filter
Constructor Detail

FilterMapping

public FilterMapping(java.lang.String map,
                     int type,
                     FilterObject filter)
Method Detail

getFilter

public javax.servlet.Filter getFilter()
Gets the Filter object for this mapping

applyMapping

public boolean applyMapping(java.lang.String requestPath,
                            java.lang.String servletName)
Determine if this mapping should be applied to the given request.
Parameters:
requestPath - The requested path
servletName - The requested servlet name
Returns:
true if this mapping should be applied

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright � 2002 Macromedia Corporation. All Rights Reserved.