|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.core.StandardWrapperFacade
public class StandardWrapperFacade
Facade for the StandardWrapper object.
Nested Class Summary | |
---|---|
static class |
StandardWrapperFacade.Dynamic
|
Constructor Summary | |
---|---|
StandardWrapperFacade(StandardWrapper wrapper)
Create a new facede around a StandardWrapper. |
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
addMapping(java.lang.String... urlPatterns)
Adds a servlet mapping with the given URL patterns for the Servlet represented by this ServletRegistration. |
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.Enumeration |
getInitParameterNames()
Returns the names of the servlet's initialization parameters as an Enumeration of String objects,
or an empty Enumeration if the servlet has
no initialization parameters. |
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.util.Collection<java.lang.String> |
getMappings()
Gets the currently available mappings of the Servlet represented by this ServletRegistration . |
java.lang.String |
getName()
Gets the name of the Servlet or Filter that is represented by this Registration. |
java.lang.String |
getRunAsRole()
Gets the name of the runAs role of the Servlet represented by this ServletRegistration . |
javax.servlet.ServletContext |
getServletContext()
Returns a reference to the ServletContext in which the caller
is executing. |
java.lang.String |
getServletName()
Returns the name of this servlet instance. |
void |
setAsyncSupported(boolean asyncSupported)
|
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. |
void |
setLoadOnStartup(int loadOnStartup)
|
void |
setMultipartConfig(javax.servlet.MultipartConfigElement multipartConfig)
|
void |
setRunAsRole(java.lang.String roleName)
|
java.util.Set<java.lang.String> |
setServletSecurity(javax.servlet.ServletSecurityElement servletSecurity)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardWrapperFacade(StandardWrapper wrapper)
Method Detail |
---|
public java.lang.String getServletName()
javax.servlet.ServletConfig
getServletName
in interface javax.servlet.ServletConfig
public javax.servlet.ServletContext getServletContext()
javax.servlet.ServletConfig
ServletContext
in which the caller
is executing.
getServletContext
in interface javax.servlet.ServletConfig
ServletContext
object, used
by the caller to interact with its servlet containerServletContext
public java.lang.String getInitParameter(java.lang.String name)
javax.servlet.Registration
getInitParameter
in interface javax.servlet.Registration
getInitParameter
in interface javax.servlet.ServletConfig
name
- the name of the initialization parameter whose value is
requested
public java.util.Enumeration getInitParameterNames()
javax.servlet.ServletConfig
Enumeration
of String
objects,
or an empty Enumeration
if the servlet has
no initialization parameters.
getInitParameterNames
in interface javax.servlet.ServletConfig
Enumeration
of String
objects containing the names of the servlet's
initialization parameterspublic java.util.Set<java.lang.String> addMapping(java.lang.String... urlPatterns)
javax.servlet.ServletRegistration
If any of the specified URL patterns are already mapped to a different Servlet, no updates will be performed.
If this method is called multiple times, each successive call adds to the effects of the former.
addMapping
in interface javax.servlet.ServletRegistration
urlPatterns
- the URL patterns of the servlet mapping
public void setAsyncSupported(boolean asyncSupported)
public void setDescription(java.lang.String description)
public boolean setInitParameter(java.lang.String name, java.lang.String value)
javax.servlet.Registration
setInitParameter
in interface javax.servlet.Registration
name
- 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)
javax.servlet.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.
setInitParameters
in interface javax.servlet.Registration
initParameters
- the initialization parameters
public void setLoadOnStartup(int loadOnStartup)
public java.util.Collection<java.lang.String> getMappings()
javax.servlet.ServletRegistration
ServletRegistration
.
Any changes to the returned Collection
must not
affect this ServletRegistration
.
getMappings
in interface javax.servlet.ServletRegistration
Collection
of the currently
available mappings of the Servlet represented by this
ServletRegistration
public java.lang.String getClassName()
javax.servlet.Registration
getClassName
in interface javax.servlet.Registration
public java.util.Map<java.lang.String,java.lang.String> getInitParameters()
javax.servlet.Registration
getInitParameters
in interface javax.servlet.Registration
public java.lang.String getName()
javax.servlet.Registration
getName
in interface javax.servlet.Registration
public java.lang.String getRunAsRole()
javax.servlet.ServletRegistration
ServletRegistration
.
getRunAsRole
in interface javax.servlet.ServletRegistration
public void setRunAsRole(java.lang.String roleName)
public java.util.Set<java.lang.String> setServletSecurity(javax.servlet.ServletSecurityElement servletSecurity)
public void setMultipartConfig(javax.servlet.MultipartConfigElement multipartConfig)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |