Package org.apache.catalina.core
Class ApplicationServletRegistration
java.lang.Object
org.apache.catalina.core.ApplicationServletRegistration
- All Implemented Interfaces:
- Registration,- Registration.Dynamic,- ServletRegistration,- ServletRegistration.Dynamic
- 
Nested Class SummaryNested classes/interfaces inherited from interface jakarta.servlet.RegistrationRegistration.DynamicNested classes/interfaces inherited from interface jakarta.servlet.ServletRegistrationServletRegistration.Dynamic
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddMapping(String... urlPatterns) Adds a servlet mapping with the given URL patterns for the Servlet represented by this ServletRegistration.Obtain the name of the implementation class for the Servlet.getInitParameter(String name) Get the value of an initialisation parameter.Get the names and values of all the initialisation parameters.Gets the currently available mappings of the Servlet represented by this ServletRegistration.getName()Obtain the name of the Servlet.Obtain the name of the user / group under which the Servlet has been configured to run.voidsetAsyncSupported(boolean asyncSupported) Mark this Servlet/Filter as supported asynchronous processing.booleansetInitParameter(String name, String value) Add an initialisation parameter if not already added.setInitParameters(Map<String, String> initParameters) Add multiple initialisation parameters.voidsetLoadOnStartup(int loadOnStartup) Set the loadOnStartup order for the ServletvoidsetMultipartConfig(MultipartConfigElement multipartConfig) Set the multi-part configuration for the associated Servlet.voidsetRunAsRole(String roleName) Set the name of the user / group under which the Servlet should be configured to run.setServletSecurity(ServletSecurityElement constraint) Add security constraints to this Servlet.
- 
Constructor Details- 
ApplicationServletRegistration
 
- 
- 
Method Details- 
getClassNameDescription copied from interface:jakarta.servlet.RegistrationObtain the name of the implementation class for the Servlet.- Specified by:
- getClassNamein interface- Registration
- Returns:
- the name of the implementation class for the Servlet.
 
- 
getInitParameterDescription copied from interface:jakarta.servlet.RegistrationGet the value of an initialisation parameter.- Specified by:
- getInitParameterin interface- Registration
- Parameters:
- name- The initialisation parameter whose value is required
- Returns:
- The value of the named initialisation parameter
 
- 
getInitParametersDescription copied from interface:jakarta.servlet.RegistrationGet the names and values of all the initialisation parameters.- Specified by:
- getInitParametersin interface- Registration
- Returns:
- A Map of initialisation parameter names and associated values keyed by name
 
- 
getNameDescription copied from interface:jakarta.servlet.RegistrationObtain the name of the Servlet.- Specified by:
- getNamein interface- Registration
- Returns:
- the name of the Servlet.
 
- 
setInitParameterDescription copied from interface:jakarta.servlet.RegistrationAdd an initialisation parameter if not already added.- Specified by:
- setInitParameterin interface- Registration
- Parameters:
- name- Name of initialisation parameter
- value- Value of initialisation parameter
- Returns:
- trueif the initialisation parameter was set,- falseif the initialisation parameter was not set because an initialisation parameter of the same name already existed
 
- 
setInitParametersDescription copied from interface:jakarta.servlet.RegistrationAdd multiple initialisation parameters. If any of the supplied initialisation parameter conflicts with an existing initialisation parameter, no updates will be performed.- Specified by:
- setInitParametersin interface- Registration
- Parameters:
- initParameters- The initialisation parameters to add
- Returns:
- The set of initialisation parameter names that conflicted with existing initialisation parameter. If there are no conflicts, this Set will be empty.
 
- 
setAsyncSupportedpublic void setAsyncSupported(boolean asyncSupported) Description copied from interface:jakarta.servlet.Registration.DynamicMark this Servlet/Filter as supported asynchronous processing.- Specified by:
- setAsyncSupportedin interface- Registration.Dynamic
- Parameters:
- asyncSupported- Should this Servlet/Filter support asynchronous processing
 
- 
setLoadOnStartuppublic void setLoadOnStartup(int loadOnStartup) Description copied from interface:jakarta.servlet.ServletRegistration.DynamicSet the loadOnStartup order for the Servlet- Specified by:
- setLoadOnStartupin interface- ServletRegistration.Dynamic
- Parameters:
- loadOnStartup- The position in the order the Servlet should be started (higher numbers are started after lower numbers)
 
- 
setMultipartConfigDescription copied from interface:jakarta.servlet.ServletRegistration.DynamicSet the multi-part configuration for the associated Servlet. To clear the multi-part configuration specifynullas the new value.- Specified by:
- setMultipartConfigin interface- ServletRegistration.Dynamic
- Parameters:
- multipartConfig- The configuration to associate with the Servlet
 
- 
setRunAsRoleDescription copied from interface:jakarta.servlet.ServletRegistration.DynamicSet the name of the user / group under which the Servlet should be configured to run.- Specified by:
- setRunAsRolein interface- ServletRegistration.Dynamic
- Parameters:
- roleName- name of the user / group or- nullif none
 
- 
setServletSecurityDescription copied from interface:jakarta.servlet.ServletRegistration.DynamicAdd security constraints to this Servlet.- Specified by:
- setServletSecurityin interface- ServletRegistration.Dynamic
- Parameters:
- constraint- new security constraints for this Servlet
- Returns:
- urls currently mapped to this registration that are already present in web.xml
 
- 
addMappingDescription copied from interface:jakarta.servlet.ServletRegistrationAdds a servlet mapping with the given URL patterns for the Servlet represented by this 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. The returned set is not backed by the ServletRegistration object, so changes in the returned set are not reflected in the ServletRegistration object, and vice-versa.- Specified by:
- addMappingin interface- ServletRegistration
- Parameters:
- urlPatterns- The URL patterns that this Servlet should be mapped to
- Returns:
- the (possibly empty) Set of URL patterns that are already mapped to a different Servlet
 
- 
getMappingsDescription copied from interface:jakarta.servlet.ServletRegistrationGets the currently available mappings of the Servlet represented by this ServletRegistration. If permitted, any changes to the returned Collection must not affect this ServletRegistration.- Specified by:
- getMappingsin interface- ServletRegistration
- Returns:
- a (possibly empty) Collection of the currently available mappings of the Servlet represented by this ServletRegistration
 
- 
getRunAsRoleDescription copied from interface:jakarta.servlet.ServletRegistrationObtain the name of the user / group under which the Servlet has been configured to run.- Specified by:
- getRunAsRolein interface- ServletRegistration
- Returns:
- the name of the user / group or nullif none has been specified
 
 
-