@ManagedObject(value="Filter Mappings") public class FilterMapping extends 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(DispatcherType t) |
static int |
dispatch(DispatcherType type)
Dispatch type from name
|
static DispatcherType |
dispatch(String type)
Dispatch type from name
|
String |
dump() |
void |
dump(Appendable out,
String indent) |
String |
getFilterName() |
String[] |
getPathSpecs() |
String[] |
getServletNames() |
boolean |
isDefaultDispatches() |
void |
setDispatcherTypes(EnumSet<DispatcherType> dispatcherTypes) |
void |
setDispatches(int dispatches) |
void |
setFilterName(String filterName) |
void |
setPathSpec(String pathSpec) |
void |
setPathSpecs(String[] pathSpecs) |
void |
setServletName(String servletName) |
void |
setServletNames(String[] servletNames) |
String |
toString() |
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 DispatcherType dispatch(String type)
public static int dispatch(DispatcherType type)
public boolean appliesTo(DispatcherType t)
public boolean isDefaultDispatches()
@ManagedAttribute(value="filter name", readonly=true) public String getFilterName()
@ManagedAttribute(value="url patterns", readonly=true) public String[] getPathSpecs()
public void setDispatcherTypes(EnumSet<DispatcherType> dispatcherTypes)
public void setDispatches(int dispatches)
public void setFilterName(String filterName)
filterName
- The filterName to set.public void setPathSpecs(String[] pathSpecs)
pathSpecs
- The Path specifications to which this filter should be mapped.public void setPathSpec(String pathSpec)
pathSpec
- The pathSpec to set.@ManagedAttribute(value="servlet names", readonly=true) public String[] getServletNames()
public void setServletNames(String[] servletNames)
servletNames
- Maps the named filter
to multiple servletssetServletName(java.lang.String)
public void setServletName(String servletName)
servletName
- Maps the named filter
to a single servletsetServletNames(java.lang.String[])
public void dump(Appendable out, String indent) throws IOException
dump
in interface Dumpable
IOException
Copyright © 1995-2015 Webtide. All Rights Reserved.