| Modifier and Type | Field and Description |
|---|---|
| private ServletSecurityElement | |
| private final Context | |
| private static final StringManager | sm
The string manager for this package. |
| private final Wrapper |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | addMapping(String...
The URL patterns that this Servlet should be mapped to urlPatterns)Implements jakarta. Adds a servlet mapping with the given URL patterns for the Servlet represented by this ServletRegistration. |
| public String | getClassName()
Implements jakarta. Obtain the name of the implementation class for the Servlet. |
| public String | getInitParameter(String
The initialisation parameter whose value is required name)Implements jakarta. Get the value of an initialisation parameter. |
| public Map | getInitParameters()
Implements jakarta. Get the names and values of all the initialisation parameters. |
| public Collection | getMappings()
Implements jakarta. Gets the currently available mappings of the Servlet represented by this ServletRegistration. |
| public String | |
| public String | getRunAsRole()
Implements jakarta. Obtain the name of the user / group under which the Servlet has been configured to run. |
| public void | setAsyncSupported(boolean
Should this Servlet/Filter support asynchronous processing asyncSupported)Implements jakarta. Mark this Servlet/Filter as supported asynchronous processing. |
| public boolean | setInitParameter(String
Name of initialisation parameter name, String Value of initialisation parameter value)Implements jakarta. Add an initialisation parameter if not already added. |
| public Set | setInitParameters(Map<String, String>
The initialisation parameters to add initParameters)Implements jakarta. Add multiple initialisation parameters. |
| public void | setLoadOnStartup(int
The position in the order the Servlet should be started (higher numbers are started
after lower numbers) loadOnStartup)Implements jakarta. Set the loadOnStartup order for the Servlet |
| public void | setMultipartConfig(MultipartConfigElement
The configuration to associate with the Servlet multipartConfig)Implements jakarta. Set the multi-part configuration for the associated Servlet. |
| public void | setRunAsRole(String
name of the user / group or roleName)null if noneImplements jakarta. Set the name of the user / group under which the Servlet should be configured to run. |
| public Set | setServletSecurity(ServletSecurityElement
new security constraints for this Servlet constraint)Implements jakarta. Add security constraints to this Servlet. |
| constraint | back to summary |
|---|---|
| private ServletSecurityElement constraint | |
| context | back to summary |
|---|---|
| private final Context context | |
| sm | back to summary |
|---|---|
| private static final StringManager sm The string manager for this package. | |
| wrapper | back to summary |
|---|---|
| private final Wrapper wrapper | |
| ApplicationServletRegistration | back to summary |
|---|---|
| public ApplicationServletRegistration(Wrapper wrapper, Context context) | |
| addMapping | back to summary |
|---|---|
| public Set Implements jakarta. Doc from jakarta. Adds 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. | |
| getClassName | back to summary |
|---|---|
| public String getClassName() Implements jakarta. Doc from jakarta. Obtain the name of the implementation class for the Servlet. | |
| getInitParameter | back to summary |
|---|---|
| public String getInitParameter(String name) Implements jakarta. Doc from jakarta. Get the value of an initialisation parameter. | |
| getInitParameters | back to summary |
|---|---|
| public Map Implements jakarta. Doc from jakarta. Get the names and values of all the initialisation parameters. | |
| getMappings | back to summary |
|---|---|
| public Collection Implements jakarta. Doc from jakarta. Gets the currently available mappings of the Servlet represented by this ServletRegistration. If permitted, any changes to the returned Collection must not affect this ServletRegistration.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements jakarta. Doc from jakarta. Obtain the name of the Servlet. | |
| getRunAsRole | back to summary |
|---|---|
| public String getRunAsRole() Implements jakarta. Doc from jakarta. Obtain the name of the user / group under which the Servlet has been configured to run. | |
| setAsyncSupported | back to summary |
|---|---|
| public void setAsyncSupported(boolean asyncSupported) Implements jakarta. Doc from jakarta. Mark this Servlet/Filter as supported asynchronous processing.
| |
| setInitParameter | back to summary |
|---|---|
| public boolean setInitParameter(String name, String value) Implements jakarta. Doc from jakarta. Add an initialisation parameter if not already added.
| |
| setInitParameters | back to summary |
|---|---|
| public Set Implements jakarta. Doc from jakarta. Add multiple initialisation parameters. If any of the supplied initialisation parameter conflicts with an existing initialisation parameter, no updates will be performed. | |
| setLoadOnStartup | back to summary |
|---|---|
| public void setLoadOnStartup(int loadOnStartup) Implements jakarta. Doc from jakarta. Set the loadOnStartup order for the Servlet
| |
| setMultipartConfig | back to summary |
|---|---|
| public void setMultipartConfig(MultipartConfigElement multipartConfig) Implements jakarta. Doc from jakarta. Set the multi-part configuration for the associated Servlet. To clear the multi-part configuration specify
| |
| setRunAsRole | back to summary |
|---|---|
| public void setRunAsRole(String roleName) Implements jakarta. Doc from jakarta. Set the name of the user / group under which the Servlet should be configured to run. | |
| setServletSecurity | back to summary |
|---|---|
| public Set Implements jakarta. Doc from jakarta. Add security constraints to this Servlet.
| |