public class ApplicationServletRegistration extends Object implements ServletRegistration.Dynamic
ServletRegistration.Dynamic
Constructor and Description |
---|
ApplicationServletRegistration(Wrapper wrapper,
Context context) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
addMapping(String... urlPatterns)
TODO
|
String |
getClassName() |
String |
getInitParameter(String name)
Get the value of an initialisation parameter.
|
Map<String,String> |
getInitParameters()
Get the names and values of all the initialisation parameters.
|
Collection<String> |
getMappings() |
String |
getName() |
String |
getRunAsRole() |
void |
setAsyncSupported(boolean asyncSupported)
Mark this Servlet/Filter as supported asynchronous processing.
|
boolean |
setInitParameter(String name,
String value)
Add an initialisation parameter if not already added.
|
Set<String> |
setInitParameters(Map<String,String> initParameters)
Add multiple initialisation parameters.
|
void |
setLoadOnStartup(int loadOnStartup) |
void |
setMultipartConfig(MultipartConfigElement multipartConfig) |
void |
setRunAsRole(String roleName) |
Set<String> |
setServletSecurity(ServletSecurityElement constraint) |
public String getClassName()
getClassName
in interface Registration
public String getInitParameter(String name)
Registration
getInitParameter
in interface Registration
name
- The initialisation parameter whose value is requiredpublic Map<String,String> getInitParameters()
Registration
getInitParameters
in interface Registration
public String getName()
getName
in interface Registration
public boolean setInitParameter(String name, String value)
Registration
setInitParameter
in interface Registration
name
- 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 Set<String> setInitParameters(Map<String,String> initParameters)
Registration
setInitParameters
in interface Registration
initParameters
- The initialisation parameters to addpublic void setAsyncSupported(boolean asyncSupported)
Registration.Dynamic
setAsyncSupported
in interface Registration.Dynamic
asyncSupported
- Should this Servlet/Filter support
asynchronous processingpublic void setLoadOnStartup(int loadOnStartup)
setLoadOnStartup
in interface ServletRegistration.Dynamic
public void setMultipartConfig(MultipartConfigElement multipartConfig)
setMultipartConfig
in interface ServletRegistration.Dynamic
public void setRunAsRole(String roleName)
setRunAsRole
in interface ServletRegistration.Dynamic
public Set<String> setServletSecurity(ServletSecurityElement constraint)
setServletSecurity
in interface ServletRegistration.Dynamic
public Set<String> addMapping(String... urlPatterns)
ServletRegistration
addMapping
in interface ServletRegistration
urlPatterns
- The URL patterns that this Servlet should be mapped topublic Collection<String> getMappings()
getMappings
in interface ServletRegistration
public String getRunAsRole()
getRunAsRole
in interface ServletRegistration
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.