<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 |
|---|---|
| public static final int | |
| private int | |
| public static final int | ERROR
The name of this filter to be executed when this mapping matches a particular request. |
| private String | |
| public static final int | |
| public static final int | |
| private boolean | matchAllServletNames
The flag that indicates this mapping will match all servlet-names |
| private boolean | matchAllUrlPatterns
The flag that indicates this mapping will match all url-patterns |
| private static final int | |
| public static final int | |
| private static final long | |
| private String[] | servletNames
The servlet name this mapping matches. |
| private String[] | urlPatterns
The URL pattern this mapping matches. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public int | |
| public String[] | |
| public String | |
| public boolean | |
| public boolean | |
| public String[] | |
| public String[] | |
| public void | setDispatcher(String
the dispatcher type which should
match this filter dispatcherString)This method will be used to set the current state of the FilterMap representing the state of when filters should be applied. |
| public void | |
| public String |
| ASYNC | back to summary |
|---|---|
| public static final int ASYNC | |
| dispatcherMapping | back to summary |
|---|---|
| private int dispatcherMapping | |
| ERROR | back to summary |
|---|---|
| public static final int ERROR The name of this filter to be executed when this mapping matches a particular request. | |
| filterName | back to summary |
|---|---|
| private String filterName | |
| FORWARD | back to summary |
|---|---|
| public static final int FORWARD | |
| INCLUDE | back to summary |
|---|---|
| public static final int INCLUDE | |
| matchAllServletNames | back to summary |
|---|---|
| private boolean matchAllServletNames The flag that indicates this mapping will match all servlet-names | |
| matchAllUrlPatterns | back to summary |
|---|---|
| private boolean matchAllUrlPatterns The flag that indicates this mapping will match all url-patterns | |
| NOT_SET | back to summary |
|---|---|
| private static final int NOT_SET | |
| REQUEST | back to summary |
|---|---|
| public static final int REQUEST | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| servletNames | back to summary |
|---|---|
| private String[] servletNames The servlet name this mapping matches. | |
| urlPatterns | back to summary |
|---|---|
| private String[] urlPatterns The URL pattern this mapping matches. | |
| FilterMap | back to summary |
|---|---|
| public FilterMap() | |
| addServletName | back to summary |
|---|---|
| public void addServletName(String servletName) | |
| addURLPattern | back to summary |
|---|---|
| public void addURLPattern(String urlPattern) | |
| addURLPatternDecoded | back to summary |
|---|---|
| public void addURLPatternDecoded(String urlPattern) | |
| getDispatcherMapping | back to summary |
|---|---|
| public int getDispatcherMapping() | |
| getDispatcherNames | back to summary |
|---|---|
| public String[] getDispatcherNames() | |
| getFilterName | back to summary |
|---|---|
| public String getFilterName() | |
| getMatchAllServletNames | back to summary |
|---|---|
| public boolean getMatchAllServletNames() | |
| getMatchAllUrlPatterns | back to summary |
|---|---|
| public boolean getMatchAllUrlPatterns() | |
| getServletNames | back to summary |
|---|---|
| public String[] getServletNames() | |
| getURLPatterns | back to summary |
|---|---|
| public String[] getURLPatterns() | |
| setDispatcher | back to summary |
|---|---|
| public 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.
| |
| setFilterName | back to summary |
|---|---|
| public void setFilterName(String filterName) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Render a String representation of this object.
| |