org.eclipse.jetty.servlet
类 Holder.HolderRegistration

java.lang.Object
  继承者 org.eclipse.jetty.servlet.Holder.HolderRegistration
所有已实现的接口:
Registration, Registration.Dynamic
直接已知子类:
FilterHolder.Registration, ServletHolder.Registration
包容类:
Holder<T>

protected class Holder.HolderRegistration
extends Object
implements Registration.Dynamic


嵌套类摘要
 
从接口 javax.servlet.Registration 继承的嵌套类/接口
Registration.Dynamic
 
构造方法摘要
protected Holder.HolderRegistration()
           
 
方法摘要
 String getClassName()
          Gets the fully qualified class name of the Servlet or Filter that is represented by this Registration.
 String getInitParameter(String name)
          Gets the value of the initialization parameter with the given name that will be used to initialize the Servlet or Filter represented by this Registration object.
 Map<String,String> getInitParameters()
          Gets an immutable (and possibly empty) Map containing the currently available initialization parameters that will be used to initialize the Servlet or Filter represented by this Registration object.
 String getName()
          Gets the name of the Servlet or Filter that is represented by this Registration.
 void setAsyncSupported(boolean isAsyncSupported)
          Configures the Servlet or Filter represented by this dynamic Registration as supporting asynchronous operations or not.
 void setDescription(String description)
           
 boolean setInitParameter(String name, String value)
          Sets the initialization parameter with the given name and value on the Servlet or Filter that is represented by this Registration.
 Set<String> setInitParameters(Map<String,String> initParameters)
          Sets the given initialization parameters on the Servlet or Filter that is represented by this Registration.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Holder.HolderRegistration

protected Holder.HolderRegistration()
方法详细信息

setAsyncSupported

public void setAsyncSupported(boolean isAsyncSupported)
从接口 Registration.Dynamic 复制的描述
Configures the Servlet or Filter represented by this dynamic Registration as supporting asynchronous operations or not.

By default, servlet and filters do not support asynchronous operations.

A call to this method overrides any previous setting.

指定者:
接口 Registration.Dynamic 中的 setAsyncSupported
参数:
isAsyncSupported - true if the Servlet or Filter represented by this dynamic Registration supports asynchronous operations, false otherwise

setDescription

public void setDescription(String description)

getClassName

public String getClassName()
从接口 Registration 复制的描述
Gets the fully qualified class name of the Servlet or Filter that is represented by this Registration.

指定者:
接口 Registration 中的 getClassName
返回:
the fully qualified class name of the Servlet or Filter that is represented by this Registration, or null if this Registration is preliminary

getInitParameter

public String getInitParameter(String name)
从接口 Registration 复制的描述
Gets the value of the initialization parameter with the given name that will be used to initialize the Servlet or Filter represented by this Registration object.

指定者:
接口 Registration 中的 getInitParameter
参数:
name - the name of the initialization parameter whose value is requested
返回:
the value of the initialization parameter with the given name, or null if no initialization parameter with the given name exists

getInitParameters

public Map<String,String> getInitParameters()
从接口 Registration 复制的描述
Gets an immutable (and possibly empty) Map containing the currently available initialization parameters that will be used to initialize the Servlet or Filter represented by this Registration object.

指定者:
接口 Registration 中的 getInitParameters
返回:
Map containing the currently available initialization parameters that will be used to initialize the Servlet or Filter represented by this Registration object

getName

public String getName()
从接口 Registration 复制的描述
Gets the name of the Servlet or Filter that is represented by this Registration.

指定者:
接口 Registration 中的 getName
返回:
the name of the Servlet or Filter that is represented by this Registration

setInitParameter

public boolean setInitParameter(String name,
                                String value)
从接口 Registration 复制的描述
Sets the initialization parameter with the given name and value on the Servlet or Filter that is represented by this Registration.

指定者:
接口 Registration 中的 setInitParameter
参数:
name - the initialization parameter name
value - the initialization parameter value
返回:
true if the update was successful, i.e., an initialization parameter with the given name did not already exist for the Servlet or Filter represented by this Registration, and false otherwise

setInitParameters

public Set<String> setInitParameters(Map<String,String> initParameters)
从接口 Registration 复制的描述
Sets the given initialization parameters on the Servlet or Filter that is represented by this Registration.

The given map of initialization parameters is processed by-value, i.e., for each initialization parameter contained in the map, this method calls Registration.setInitParameter(String,String). If that method would return false for any of the initialization parameters in the given map, no updates will be performed, and false will be returned. Likewise, if the map contains an initialization parameter with a null name or value, no updates will be performed, and an IllegalArgumentException will be thrown.

指定者:
接口 Registration 中的 setInitParameters
参数:
initParameters - the initialization parameters
返回:
the (possibly empty) Set of initialization parameter names that are in conflict


Copyright © 2013. All Rights Reserved.