org.eclipse.jetty.servlet
类 FilterHolder.Registration

java.lang.Object
  继承者 org.eclipse.jetty.servlet.Holder.HolderRegistration
      继承者 org.eclipse.jetty.servlet.FilterHolder.Registration
所有已实现的接口:
FilterRegistration, FilterRegistration.Dynamic, Registration, Registration.Dynamic
包容类:
FilterHolder

protected class FilterHolder.Registration
extends Holder.HolderRegistration
implements FilterRegistration.Dynamic


嵌套类摘要
 
从接口 javax.servlet.FilterRegistration 继承的嵌套类/接口
FilterRegistration.Dynamic
 
构造方法摘要
protected FilterHolder.Registration()
           
 
方法摘要
 void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... servletNames)
          Adds a filter mapping with the given servlet names and dispatcher types for the Filter represented by this FilterRegistration.
 void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... urlPatterns)
          Adds a filter mapping with the given url patterns and dispatcher types for the Filter represented by this FilterRegistration.
 Collection<String> getServletNameMappings()
          Gets the currently available servlet name mappings of the Filter represented by this FilterRegistration.
 Collection<String> getUrlPatternMappings()
          Gets the currently available URL pattern mappings of the Filter represented by this FilterRegistration.
 
从类 org.eclipse.jetty.servlet.Holder.HolderRegistration 继承的方法
getClassName, getInitParameter, getInitParameters, getName, setAsyncSupported, setDescription, setInitParameter, setInitParameters
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 javax.servlet.Registration.Dynamic 继承的方法
setAsyncSupported
 
从接口 javax.servlet.Registration 继承的方法
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
 

构造方法详细信息

FilterHolder.Registration

protected FilterHolder.Registration()
方法详细信息

addMappingForServletNames

public void addMappingForServletNames(EnumSet<DispatcherType> dispatcherTypes,
                                      boolean isMatchAfter,
                                      String... servletNames)
从接口 FilterRegistration 复制的描述
Adds a filter mapping with the given servlet names and dispatcher types for the Filter represented by this FilterRegistration.

Filter mappings are matched in the order in which they were added.

Depending on the value of the isMatchAfter parameter, the given filter mapping will be considered after or before any declared filter mappings of the ServletContext from which this FilterRegistration was obtained.

If this method is called multiple times, each successive call adds to the effects of the former.

指定者:
接口 FilterRegistration 中的 addMappingForServletNames
参数:
dispatcherTypes - the dispatcher types of the filter mapping, or null if the default DispatcherType.REQUEST is to be used
isMatchAfter - true if the given filter mapping should be matched after any declared filter mappings, and false if it is supposed to be matched before any declared filter mappings of the ServletContext from which this FilterRegistration was obtained
servletNames - the servlet names of the filter mapping

addMappingForUrlPatterns

public void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes,
                                     boolean isMatchAfter,
                                     String... urlPatterns)
从接口 FilterRegistration 复制的描述
Adds a filter mapping with the given url patterns and dispatcher types for the Filter represented by this FilterRegistration.

Filter mappings are matched in the order in which they were added.

Depending on the value of the isMatchAfter parameter, the given filter mapping will be considered after or before any declared filter mappings of the ServletContext from which this FilterRegistration was obtained.

If this method is called multiple times, each successive call adds to the effects of the former.

指定者:
接口 FilterRegistration 中的 addMappingForUrlPatterns
参数:
dispatcherTypes - the dispatcher types of the filter mapping, or null if the default DispatcherType.REQUEST is to be used
isMatchAfter - true if the given filter mapping should be matched after any declared filter mappings, and false if it is supposed to be matched before any declared filter mappings of the ServletContext from which this FilterRegistration was obtained
urlPatterns - the url patterns of the filter mapping

getServletNameMappings

public Collection<String> getServletNameMappings()
从接口 FilterRegistration 复制的描述
Gets the currently available servlet name mappings of the Filter represented by this FilterRegistration.

If permitted, any changes to the returned Collection must not affect this FilterRegistration.

指定者:
接口 FilterRegistration 中的 getServletNameMappings
返回:
a (possibly empty) Collection of the currently available servlet name mappings of the Filter represented by this FilterRegistration

getUrlPatternMappings

public Collection<String> getUrlPatternMappings()
从接口 FilterRegistration 复制的描述
Gets the currently available URL pattern mappings of the Filter represented by this FilterRegistration.

If permitted, any changes to the returned Collection must not affect this FilterRegistration.

指定者:
接口 FilterRegistration 中的 getUrlPatternMappings
返回:
a (possibly empty) Collection of the currently available URL pattern mappings of the Filter represented by this FilterRegistration


Copyright © 2013. All Rights Reserved.