public class FilterMap extends Object implements Serializable
<filter-mapping>
element in the deployment
descriptor. Each filter mapping must contain a filter name plus either
a URL pattern or a servlet name.Modifier and Type | Field and Description |
---|---|
static int |
ASYNC |
static int |
ERROR
The name of this filter to be executed when this mapping matches
a particular request.
|
static int |
FORWARD |
static int |
INCLUDE |
static int |
REQUEST |
Constructor and Description |
---|
FilterMap() |
Modifier and Type | Method and Description |
---|---|
void |
addServletName(String servletName) |
void |
addURLPattern(String urlPattern) |
int |
getDispatcherMapping() |
String[] |
getDispatcherNames() |
String |
getFilterName() |
boolean |
getMatchAllServletNames() |
boolean |
getMatchAllUrlPatterns() |
String[] |
getServletNames() |
String[] |
getURLPatterns() |
void |
setDispatcher(String dispatcherString)
This method will be used to set the current state of the FilterMap
representing the state of when filters should be applied.
|
void |
setFilterName(String filterName) |
String |
toString()
Render a String representation of this object.
|
public static final int ERROR
public static final int FORWARD
public static final int INCLUDE
public static final int REQUEST
public static final int ASYNC
public String getFilterName()
public void setFilterName(String filterName)
public String[] getServletNames()
public void addServletName(String servletName)
public boolean getMatchAllUrlPatterns()
public boolean getMatchAllServletNames()
public String[] getURLPatterns()
public void addURLPattern(String urlPattern)
public void setDispatcher(String dispatcherString)
public int getDispatcherMapping()
public String[] getDispatcherNames()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.