Package org.eclipse.jetty.servlet
Class FilterMapping
- java.lang.Object
-
- org.eclipse.jetty.servlet.FilterMapping
-
- All Implemented Interfaces:
Dumpable
@ManagedObject("Filter Mappings") @Deprecated(since="2021-05-27") public class FilterMapping extends Object implements Dumpable
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
-
Constructor Summary
Constructors Constructor Description FilterMapping()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanappliesTo(DispatcherType t)Deprecated.static DispatcherTypedispatch(int type)Deprecated.Dispatch type from namestatic DispatcherTypedispatch(String type)Deprecated.Dispatch type from namestatic intdispatch(DispatcherType type)Deprecated.Dispatch type from nameStringdump()Deprecated.voiddump(Appendable out, String indent)Deprecated.Dump this object (and children) into an Appendable using the provided indent after any new lines.EnumSet<DispatcherType>getDispatcherTypes()Deprecated.StringgetFilterName()Deprecated.String[]getPathSpecs()Deprecated.String[]getServletNames()Deprecated.booleanisDefaultDispatches()Deprecated.voidsetDispatcherTypes(EnumSet<DispatcherType> dispatcherTypes)Deprecated.voidsetDispatches(int dispatches)Deprecated.voidsetFilterName(String filterName)Deprecated.voidsetPathSpec(String pathSpec)Deprecated.voidsetPathSpecs(String[] pathSpecs)Deprecated.voidsetServletName(String servletName)Deprecated.voidsetServletNames(String[] servletNames)Deprecated.StringtoString()Deprecated.
-
-
-
Field Detail
-
DEFAULT
public static final int DEFAULT
Deprecated.Dispatch types- See Also:
- Constant Field Values
-
REQUEST
public static final int REQUEST
Deprecated.- See Also:
- Constant Field Values
-
FORWARD
public static final int FORWARD
Deprecated.- See Also:
- Constant Field Values
-
INCLUDE
public static final int INCLUDE
Deprecated.- See Also:
- Constant Field Values
-
ERROR
public static final int ERROR
Deprecated.- See Also:
- Constant Field Values
-
ASYNC
public static final int ASYNC
Deprecated.- See Also:
- Constant Field Values
-
ALL
public static final int ALL
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
dispatch
public static DispatcherType dispatch(String type)
Deprecated.Dispatch type from name- Parameters:
type- the type name- Returns:
- the dispatcher type
-
dispatch
public static int dispatch(DispatcherType type)
Deprecated.Dispatch type from name
-
dispatch
public static DispatcherType dispatch(int type)
Deprecated.Dispatch type from name
-
appliesTo
public boolean appliesTo(DispatcherType t)
Deprecated.
-
isDefaultDispatches
public boolean isDefaultDispatches()
Deprecated.
-
getFilterName
@ManagedAttribute(value="filter name", readonly=true) public String getFilterName()
Deprecated.- Returns:
- Returns the filterName.
-
getPathSpecs
@ManagedAttribute(value="url patterns", readonly=true) public String[] getPathSpecs()
Deprecated.- Returns:
- Returns the pathSpec.
-
setDispatcherTypes
public void setDispatcherTypes(EnumSet<DispatcherType> dispatcherTypes)
Deprecated.
-
getDispatcherTypes
public EnumSet<DispatcherType> getDispatcherTypes()
Deprecated.
-
setDispatches
public void setDispatches(int dispatches)
Deprecated.
-
setFilterName
public void setFilterName(String filterName)
Deprecated.- Parameters:
filterName- The filterName to set.
-
setPathSpecs
public void setPathSpecs(String[] pathSpecs)
Deprecated.- Parameters:
pathSpecs- The Path specifications to which this filter should be mapped.
-
setPathSpec
public void setPathSpec(String pathSpec)
Deprecated.- Parameters:
pathSpec- The pathSpec to set.
-
getServletNames
@ManagedAttribute(value="servlet names", readonly=true) public String[] getServletNames()
Deprecated.- Returns:
- Returns the servletName.
-
setServletNames
public void setServletNames(String[] servletNames)
Deprecated.- Parameters:
servletNames- Maps thenamed filterto multiple servlets- See Also:
setServletName(java.lang.String)
-
setServletName
public void setServletName(String servletName)
Deprecated.- Parameters:
servletName- Maps thenamed filterto a single servlet- See Also:
setServletNames(java.lang.String[])
-
dump
public void dump(Appendable out, String indent) throws IOException
Deprecated.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
-
-