java.lang.Object
org.eclipse.jetty.servlet.FilterMapping
- All Implemented Interfaces:
org.eclipse.jetty.util.component.Dumpable
@ManagedObject("Filter Mappings")
public class FilterMapping
extends Object
implements org.eclipse.jetty.util.component.Dumpable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
Dispatch typesstatic final int
static final int
static final int
static final int
Fields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
appliesTo
(jakarta.servlet.DispatcherType t) static jakarta.servlet.DispatcherType
dispatch
(int type) Dispatch type from namestatic int
dispatch
(jakarta.servlet.DispatcherType type) Dispatch type from namestatic jakarta.servlet.DispatcherType
Dispatch type from namedump()
void
dump
(Appendable out, String indent) EnumSet<jakarta.servlet.DispatcherType>
String[]
String[]
boolean
void
setDispatcherTypes
(EnumSet<jakarta.servlet.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) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelf
-
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:
-
-
Constructor Details
-
FilterMapping
public FilterMapping()
-
-
Method Details
-
dispatch
Dispatch type from name- Parameters:
type
- the type name- Returns:
- the dispatcher type
-
dispatch
public static int dispatch(jakarta.servlet.DispatcherType type) Dispatch type from name -
dispatch
public static jakarta.servlet.DispatcherType dispatch(int type) Dispatch type from name -
appliesTo
public boolean appliesTo(jakarta.servlet.DispatcherType t) -
isDefaultDispatches
public boolean isDefaultDispatches() -
getFilterName
- Returns:
- Returns the filterName.
-
getPathSpecs
- Returns:
- Returns the pathSpec.
-
setDispatcherTypes
-
getDispatcherTypes
-
setDispatches
public void setDispatches(int dispatches) -
setFilterName
- Parameters:
filterName
- The filterName 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 filter
to multiple servlets- See Also:
-
setServletName
- Parameters:
servletName
- Maps thenamed filter
to a single servlet- See Also:
-
toString
-
dump
- Specified by:
dump
in interfaceorg.eclipse.jetty.util.component.Dumpable
- Throws:
IOException
-
dump
- Specified by:
dump
in interfaceorg.eclipse.jetty.util.component.Dumpable
-