Class FilterMapping
java.lang.Object
org.eclipse.jetty.servlet.FilterMapping
- All Implemented Interfaces:
Dumpable
-
Nested Class Summary
Nested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Stringprivate FilterHolderprivate String[]private String[]static final intstatic final intstatic final intDispatch typesstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanappliesTo(int type) Check if this filter applies to a particular dispatch type.(package private) booleanCheck if this filter applies to a path.booleanappliesTo(javax.servlet.DispatcherType t) static javax.servlet.DispatcherTypedispatch(int type) Dispatch type from namestatic javax.servlet.DispatcherTypeDispatch type from namestatic intdispatch(javax.servlet.DispatcherType type) Dispatch type from namedump()voiddump(Appendable out, String indent) Dump this object (and children) into an Appendable using the provided indent after any new lines.EnumSet<javax.servlet.DispatcherType> (package private) FilterHolderString[]String[]booleanvoidsetDispatcherTypes(EnumSet<javax.servlet.DispatcherType> dispatcherTypes) voidsetDispatches(int dispatches) (package private) voidsetFilterHolder(FilterHolder holder) voidsetFilterName(String filterName) voidsetPathSpec(String pathSpec) voidsetPathSpecs(String[] pathSpecs) voidsetServletName(String servletName) voidsetServletNames(String[] servletNames) toString()
-
Field Details
-
DEFAULT
public static final int DEFAULTDispatch types- See Also:
-
REQUEST
public static final int REQUEST- See Also:
-
FORWARD
public static final int FORWARD- See Also:
-
INCLUDE
public static final int INCLUDE- See Also:
-
ERROR
public static final int ERROR- See Also:
-
ASYNC
public static final int ASYNC- See Also:
-
ALL
public static final int ALL- See Also:
-
_dispatches
private int _dispatches -
_filterName
-
_holder
-
_pathSpecs
-
_servletNames
-
-
Constructor Details
-
FilterMapping
public FilterMapping()
-
-
Method Details
-
dispatch
Dispatch type from name- Parameters:
type- the type name- Returns:
- the dispatcher type
-
dispatch
-
dispatch
-
appliesTo
Check if this filter applies to a path.- Parameters:
path- The path to check or null to just check typetype- The type of request: __REQUEST,__FORWARD,__INCLUDE, __ASYNC or __ERROR.- Returns:
- True if this filter applies
-
appliesTo
-
appliesTo
public boolean appliesTo(javax.servlet.DispatcherType t) -
isDefaultDispatches
public boolean isDefaultDispatches() -
getFilterName
- Returns:
- Returns the filterName.
-
getFilterHolder
FilterHolder getFilterHolder()- Returns:
- Returns the holder.
-
getPathSpecs
- Returns:
- Returns the pathSpec.
-
setDispatcherTypes
-
getDispatcherTypes
-
setDispatches
public void setDispatches(int dispatches) - Parameters:
dispatches- The dispatches to set.- See Also:
-
setFilterName
- Parameters:
filterName- The filterName to set.
-
setFilterHolder
- Parameters:
holder- The holder to set.
-
setPathSpecs
- Parameters:
pathSpecs- The Path specifications to which this filter should be mapped.
-
setPathSpec
- Parameters:
pathSpec- The pathSpec to set.
-
getServletNames
- Returns:
- Returns the servletName.
-
setServletNames
- Parameters:
servletNames- Maps thenamed filterto multiple servlets- See Also:
-
setServletName
- Parameters:
servletName- Maps thenamed filterto a single servlet- See Also:
-
toString
-
dump
Description copied from interface:DumpableDump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.- Specified by:
dumpin interfaceDumpable- Parameters:
out- The appendable to dump toindent- The indent to apply after any new lines.- Throws:
IOException- if unable to write to Appendable
-
dump
-