org.eclipse.jetty.servlet
类 FilterMapping

java.lang.Object
  继承者 org.eclipse.jetty.servlet.FilterMapping
所有已实现的接口:
Dumpable

public class FilterMapping
extends Object
implements Dumpable


字段摘要
static int ALL
           
static int ASYNC
           
static int DEFAULT
          Dispatch types
static int ERROR
           
static int FORWARD
           
static int INCLUDE
           
static int REQUEST
           
 
构造方法摘要
FilterMapping()
           
 
方法摘要
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()
           
 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()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

DEFAULT

public static final int DEFAULT
Dispatch types

另请参见:
常量字段值

REQUEST

public static final int REQUEST
另请参见:
常量字段值

FORWARD

public static final int FORWARD
另请参见:
常量字段值

INCLUDE

public static final int INCLUDE
另请参见:
常量字段值

ERROR

public static final int ERROR
另请参见:
常量字段值

ASYNC

public static final int ASYNC
另请参见:
常量字段值

ALL

public static final int ALL
另请参见:
常量字段值
构造方法详细信息

FilterMapping

public FilterMapping()
方法详细信息

dispatch

public static DispatcherType dispatch(String type)
Dispatch type from name


dispatch

public static int dispatch(DispatcherType type)
Dispatch type from name


getFilterName

public String getFilterName()
返回:
Returns the filterName.

getPathSpecs

public String[] getPathSpecs()
返回:
Returns the pathSpec.

setDispatcherTypes

public void setDispatcherTypes(EnumSet<DispatcherType> dispatcherTypes)

setDispatches

public void setDispatches(int dispatches)
参数:
dispatches - The dispatches to set.
另请参见:
DEFAULT, REQUEST, ERROR, FORWARD, INCLUDE

setFilterName

public void setFilterName(String filterName)
参数:
filterName - The filterName to set.

setPathSpecs

public void setPathSpecs(String[] pathSpecs)
参数:
pathSpecs - The Path specifications to which this filter should be mapped.

setPathSpec

public void setPathSpec(String pathSpec)
参数:
pathSpec - The pathSpec to set.

getServletNames

public String[] getServletNames()
返回:
Returns the servletName.

setServletNames

public void setServletNames(String[] servletNames)
参数:
servletNames - Maps the named filter to multiple servlets
另请参见:
setServletName(java.lang.String)

setServletName

public void setServletName(String servletName)
参数:
servletName - Maps the named filter to a single servlet
另请参见:
setServletNames(java.lang.String[])

toString

public String toString()
覆盖:
Object 中的 toString

dump

public void dump(Appendable out,
                 String indent)
          throws IOException
指定者:
接口 Dumpable 中的 dump
抛出:
IOException

dump

public String dump()
指定者:
接口 Dumpable 中的 dump


Copyright © 2013. All Rights Reserved.