@ManagedObject(value="Filter Mappings") public class FilterMapping extends java.lang.Object implements Dumpable
Modifier and Type | Field and Description |
---|---|
static int |
ALL |
static int |
ASYNC |
static int |
DEFAULT
Dispatch types
|
static int |
ERROR |
static int |
FORWARD |
static int |
INCLUDE |
static int |
REQUEST |
Constructor and Description |
---|
FilterMapping() |
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(javax.servlet.DispatcherType t) |
static int |
dispatch(javax.servlet.DispatcherType type)
Dispatch type from name
|
static javax.servlet.DispatcherType |
dispatch(int type)
Dispatch type from name
|
static javax.servlet.DispatcherType |
dispatch(java.lang.String type)
Dispatch type from name
|
java.lang.String |
dump() |
void |
dump(java.lang.Appendable out,
java.lang.String indent)
Dump this object (and children) into an Appendable using the provided indent after any new lines.
|
java.util.EnumSet<javax.servlet.DispatcherType> |
getDispatcherTypes() |
java.lang.String |
getFilterName() |
java.lang.String[] |
getPathSpecs() |
java.lang.String[] |
getServletNames() |
boolean |
isDefaultDispatches() |
void |
setDispatcherTypes(java.util.EnumSet<javax.servlet.DispatcherType> dispatcherTypes) |
void |
setDispatches(int dispatches) |
void |
setFilterName(java.lang.String filterName) |
void |
setPathSpec(java.lang.String pathSpec) |
void |
setPathSpecs(java.lang.String[] pathSpecs) |
void |
setServletName(java.lang.String servletName) |
void |
setServletNames(java.lang.String[] servletNames) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dump, dumpObject, dumpObjects, dumpSelf
public static final int DEFAULT
public static final int REQUEST
public static final int FORWARD
public static final int INCLUDE
public static final int ERROR
public static final int ASYNC
public static final int ALL
public static javax.servlet.DispatcherType dispatch(java.lang.String type)
type
- the type namepublic static int dispatch(javax.servlet.DispatcherType type)
public static javax.servlet.DispatcherType dispatch(int type)
public boolean appliesTo(javax.servlet.DispatcherType t)
public boolean isDefaultDispatches()
@ManagedAttribute(value="filter name", readonly=true) public java.lang.String getFilterName()
@ManagedAttribute(value="url patterns", readonly=true) public java.lang.String[] getPathSpecs()
public void setDispatcherTypes(java.util.EnumSet<javax.servlet.DispatcherType> dispatcherTypes)
public java.util.EnumSet<javax.servlet.DispatcherType> getDispatcherTypes()
public void setDispatches(int dispatches)
public void setFilterName(java.lang.String filterName)
filterName
- The filterName to set.public void setPathSpecs(java.lang.String[] pathSpecs)
pathSpecs
- The Path specifications to which this filter should be mapped.public void setPathSpec(java.lang.String pathSpec)
pathSpec
- The pathSpec to set.@ManagedAttribute(value="servlet names", readonly=true) public java.lang.String[] getServletNames()
public void setServletNames(java.lang.String[] servletNames)
servletNames
- Maps the named filter
to multiple servletssetServletName(java.lang.String)
public void setServletName(java.lang.String servletName)
servletName
- Maps the named filter
to a single servletsetServletNames(java.lang.String[])
public java.lang.String toString()
toString
in class java.lang.Object
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOException
Dumpable
Copyright © 1995–2023 Webtide. All rights reserved.