Package org.eclipse.jetty.servlet
Class FilterMapping
- 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
-
-
Constructor Summary
Constructors Constructor Description FilterMapping()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappliesTo(DispatcherType t)static DispatcherTypedispatch(int type)Dispatch type from namestatic DispatcherTypedispatch(String type)Dispatch type from namestatic intdispatch(DispatcherType type)Dispatch type from nameStringdump()voiddump(Appendable out, String indent)EnumSet<DispatcherType>getDispatcherTypes()StringgetFilterName()String[]getPathSpecs()String[]getServletNames()booleanisDefaultDispatches()voidsetDispatcherTypes(EnumSet<DispatcherType> dispatcherTypes)voidsetDispatches(int dispatches)voidsetFilterName(String filterName)voidsetPathSpec(String pathSpec)voidsetPathSpecs(String[] pathSpecs)voidsetServletName(String servletName)voidsetServletNames(String[] servletNames)StringtoString()
-
-
-
Field Detail
-
DEFAULT
public static final int DEFAULT
Dispatch types- See Also:
- Constant Field Values
-
REQUEST
public static final int REQUEST
- See Also:
- Constant Field Values
-
FORWARD
public static final int FORWARD
- See Also:
- Constant Field Values
-
INCLUDE
public static final int INCLUDE
- See Also:
- Constant Field Values
-
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
-
ASYNC
public static final int ASYNC
- See Also:
- Constant Field Values
-
ALL
public static final int ALL
- See Also:
- Constant Field Values
-
-
Method Detail
-
dispatch
public static DispatcherType dispatch(String type)
Dispatch type from name- Parameters:
type- the type name- Returns:
- the dispatcher type
-
dispatch
public static int dispatch(DispatcherType type)
Dispatch type from name
-
dispatch
public static DispatcherType dispatch(int type)
Dispatch type from name
-
appliesTo
public boolean appliesTo(DispatcherType t)
-
isDefaultDispatches
public boolean isDefaultDispatches()
-
getFilterName
@ManagedAttribute(value="filter name", readonly=true) public String getFilterName()- Returns:
- Returns the filterName.
-
getPathSpecs
@ManagedAttribute(value="url patterns", readonly=true) public String[] getPathSpecs()- Returns:
- Returns the pathSpec.
-
setDispatcherTypes
public void setDispatcherTypes(EnumSet<DispatcherType> dispatcherTypes)
-
getDispatcherTypes
public EnumSet<DispatcherType> getDispatcherTypes()
-
setDispatches
public void setDispatches(int dispatches)
-
setFilterName
public void setFilterName(String filterName)
- Parameters:
filterName- The filterName to set.
-
setPathSpecs
public void setPathSpecs(String[] pathSpecs)
- Parameters:
pathSpecs- The Path specifications to which this filter should be mapped.
-
setPathSpec
public void setPathSpec(String pathSpec)
- Parameters:
pathSpec- The pathSpec to set.
-
getServletNames
@ManagedAttribute(value="servlet names", readonly=true) public String[] getServletNames()- Returns:
- Returns the servletName.
-
setServletNames
public void setServletNames(String[] servletNames)
- Parameters:
servletNames- Maps thenamed filterto multiple servlets- See Also:
setServletName(java.lang.String)
-
setServletName
public void setServletName(String servletName)
- Parameters:
servletName- Maps thenamed filterto a single servlet- See Also:
setServletNames(java.lang.String[])
-
dump
public void dump(Appendable out, String indent) throws IOException
- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable- Throws:
IOException
-
dump
public String dump()
- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable
-
-