|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.grizzly.servlet.Registration
public abstract class Registration
Base class for all complex registrable components within a web application.
| Field Summary | |
|---|---|
protected String |
className
|
protected WebappContext |
ctx
|
protected Map<String,String> |
initParameters
|
protected String |
name
|
| Constructor Summary | |
|---|---|
protected |
Registration(WebappContext ctx,
String name,
String className)
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
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. |
int |
hashCode()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String name
protected String className
protected Map<String,String> initParameters
protected WebappContext ctx
| Constructor Detail |
|---|
protected Registration(WebappContext ctx,
String name,
String className)
| Method Detail |
|---|
public String getName()
public String getClassName()
public boolean setInitParameter(String name,
String value)
name - the initialization parameter namevalue - the initialization parameter value
IllegalStateException - if the WebappContext from which this
Registration was obtained has already been initialized
IllegalArgumentException - if the given name or value is
nullpublic String getInitParameter(String name)
name - the name of the initialization parameter whose value is
requested
public Set<String> setInitParameters(Map<String,String> initParameters)
The given map of initialization parameters is processed
by-value, i.e., for each initialization parameter contained
in the map, this method calls 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.
initParameters - the initialization parameters
IllegalStateException - if the WebappContext from which this
Registration was obtained has already been initialized
IllegalArgumentException - if the given map contains an
initialization parameter with a null name or valuepublic Map<String,String> getInitParameters()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||