|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jetty.servlet.Holder.HolderRegistration
protected class Holder.HolderRegistration
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.servlet.Registration |
|---|
Registration.Dynamic |
| Constructor Summary | |
|---|---|
protected |
Holder.HolderRegistration()
|
| Method Summary | |
|---|---|
java.lang.String |
getClassName()
Gets the fully qualified class name of the Servlet or Filter that is represented by this Registration. |
java.lang.String |
getInitParameter(java.lang.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. |
java.util.Map<java.lang.String,java.lang.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. |
java.lang.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(java.lang.String description)
|
boolean |
setInitParameter(java.lang.String name,
java.lang.String value)
Sets the initialization parameter with the given name and value on the Servlet or Filter that is represented by this Registration. |
java.util.Set<java.lang.String> |
setInitParameters(java.util.Map<java.lang.String,java.lang.String> initParameters)
Sets the given initialization parameters on the Servlet or Filter that is represented by this Registration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Holder.HolderRegistration()
| Method Detail |
|---|
public void setAsyncSupported(boolean isAsyncSupported)
Registration.DynamicBy default, servlet and filters do not support asynchronous operations.
A call to this method overrides any previous setting.
setAsyncSupported in interface Registration.DynamicisAsyncSupported - true if the Servlet or Filter represented
by this dynamic Registration supports asynchronous operations,
false otherwisepublic void setDescription(java.lang.String description)
public java.lang.String getClassName()
Registration
getClassName in interface Registrationpublic java.lang.String getInitParameter(java.lang.String name)
Registration
getInitParameter in interface Registrationname - the name of the initialization parameter whose value is
requested
public java.util.Map<java.lang.String,java.lang.String> getInitParameters()
Registration
getInitParameters in interface Registrationpublic java.lang.String getName()
Registration
getName in interface Registration
public boolean setInitParameter(java.lang.String name,
java.lang.String value)
Registration
setInitParameter in interface Registrationname - the initialization parameter namevalue - the initialization parameter value
public java.util.Set<java.lang.String> setInitParameters(java.util.Map<java.lang.String,java.lang.String> initParameters)
RegistrationThe 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.
setInitParameters in interface RegistrationinitParameters - the initialization parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||