public class ApplicationServletRegistration extends java.lang.Object implements ServletRegistration.Dynamic
ServletRegistration.Dynamic| Constructor and Description |
|---|
ApplicationServletRegistration(Wrapper wrapper,
Context context) |
| Modifier and Type | Method and Description |
|---|---|
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()
Obtain the name of the implementation class for the Servlet.
|
java.lang.String |
getInitParameter(java.lang.String name)
Get the value of an initialisation parameter.
|
java.util.Map<java.lang.String,java.lang.String> |
getInitParameters()
Get the names and values of all the initialisation parameters.
|
java.util.Collection<java.lang.String> |
getMappings()
Gets the currently available mappings of the Servlet represented by this
ServletRegistration.
|
java.lang.String |
getName()
Obtain the name of the Servlet.
|
java.lang.String |
getRunAsRole()
Obtain the name of the user / group under which the Servlet has been
configured to run.
|
void |
setAsyncSupported(boolean asyncSupported)
Mark this Servlet/Filter as supported asynchronous processing.
|
boolean |
setInitParameter(java.lang.String name,
java.lang.String value)
Add an initialisation parameter if not already added.
|
java.util.Set<java.lang.String> |
setInitParameters(java.util.Map<java.lang.String,java.lang.String> initParameters)
Add multiple initialisation parameters.
|
void |
setLoadOnStartup(int loadOnStartup)
Set the loadOnStartup order for the Servlet
|
void |
setMultipartConfig(MultipartConfigElement multipartConfig)
Set the multi-part configuration for the associated Servlet.
|
void |
setRunAsRole(java.lang.String roleName)
Set the name of the user / group under which the Servlet should be
configured to run.
|
java.util.Set<java.lang.String> |
setServletSecurity(ServletSecurityElement constraint)
Add security constraints to this Servlet.
|
public java.lang.String getClassName()
javax.servlet.RegistrationgetClassName in interface Registrationpublic java.lang.String getInitParameter(java.lang.String name)
javax.servlet.RegistrationgetInitParameter in interface Registrationname - The initialisation parameter whose value is requiredpublic java.util.Map<java.lang.String,java.lang.String> getInitParameters()
javax.servlet.RegistrationgetInitParameters in interface Registrationpublic java.lang.String getName()
javax.servlet.RegistrationgetName in interface Registrationpublic boolean setInitParameter(java.lang.String name,
java.lang.String value)
javax.servlet.RegistrationsetInitParameter in interface Registrationname - Name of initialisation parametervalue - Value of initialisation parametertrue if the initialisation parameter was set,
false if the initialisation parameter was not set
because an initialisation parameter of the same name already
existedpublic java.util.Set<java.lang.String> setInitParameters(java.util.Map<java.lang.String,java.lang.String> initParameters)
javax.servlet.RegistrationsetInitParameters in interface RegistrationinitParameters - The initialisation parameters to addpublic void setAsyncSupported(boolean asyncSupported)
javax.servlet.Registration.DynamicsetAsyncSupported in interface Registration.DynamicasyncSupported - Should this Servlet/Filter support
asynchronous processingpublic void setLoadOnStartup(int loadOnStartup)
javax.servlet.ServletRegistration.DynamicsetLoadOnStartup in interface ServletRegistration.DynamicloadOnStartup - The position in the order the Servlet should be
started (higher numbers are started after lower
numbers)public void setMultipartConfig(MultipartConfigElement multipartConfig)
javax.servlet.ServletRegistration.Dynamicnull as the new
value.setMultipartConfig in interface ServletRegistration.DynamicmultipartConfig - The configuration to associate with the
Servletpublic void setRunAsRole(java.lang.String roleName)
javax.servlet.ServletRegistration.DynamicsetRunAsRole in interface ServletRegistration.DynamicroleName - name of the user / group or null if nonepublic java.util.Set<java.lang.String> setServletSecurity(ServletSecurityElement constraint)
javax.servlet.ServletRegistration.DynamicsetServletSecurity in interface ServletRegistration.Dynamicconstraint - new security constraints for this Servletpublic java.util.Set<java.lang.String> addMapping(java.lang.String... urlPatterns)
javax.servlet.ServletRegistrationaddMapping in interface ServletRegistrationurlPatterns - The URL patterns that this Servlet should be mapped topublic java.util.Collection<java.lang.String> getMappings()
javax.servlet.ServletRegistrationgetMappings in interface ServletRegistrationpublic java.lang.String getRunAsRole()
javax.servlet.ServletRegistrationgetRunAsRole in interface ServletRegistrationnull if none has been
specifiedCopyright © 2000-2023 Apache Software Foundation. All Rights Reserved.