| Modifier and Type | Field and Description |
|---|---|
| private final Deployment | |
| private final ManagedServlet | |
| private final ServletInfo |
| Access | Constructor and Description |
|---|---|
| public | ServletRegistrationImpl(final ServletInfo servletInfo, ManagedServlet managedServlet, final Deployment deployment)
|
| Modifier and Type | Method and Description |
|---|---|
| public Set | addMapping(final String...
the URL patterns of the servlet mapping urlPatterns)Implements jakarta. Adds a servlet mapping with the given URL patterns for the Servlet represented by this ServletRegistration. |
| private SecurityInfo. | |
| public String | getClassName()
Implements jakarta. Gets the fully qualified class name of the Servlet or Filter that is represented by this Registration. |
| public String | getInitParameter(final String
the name of the initialization parameter whose value is requested name)Implements jakarta. 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. |
| public Map | getInitParameters()
Implements jakarta. 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. |
| public Collection | getMappings()
Implements jakarta. Gets the currently available mappings of the Servlet represented by this |
| public String | getName()
Implements jakarta. Gets the name of the Servlet or Filter that is represented by this Registration. |
| public String | getRunAsRole()
Implements jakarta. Gets the name of the runAs role of the Servlet represented by this |
| public void | setAsyncSupported(final boolean
true if the Servlet or Filter represented by this dynamic Registration supports asynchronous
operations, false otherwise isAsyncSupported)Implements jakarta. Configures the Servlet or Filter represented by this dynamic Registration as supporting asynchronous operations or not. |
| public boolean | setInitParameter(final String
the initialization parameter name name, final String the initialization parameter value value)Implements jakarta. Sets the initialization parameter with the given name and value on the Servlet or Filter that is represented by this Registration. |
| public Set | setInitParameters(final Map<String, String>
the initialization parameters initParameters)Implements jakarta. Sets the given initialization parameters on the Servlet or Filter that is represented by this Registration. |
| public void | setLoadOnStartup(final int
the initialization priority of the Servlet loadOnStartup)Implements jakarta. Sets the |
| public void | setMultipartConfig(final MultipartConfigElement
the multipartConfig)MultipartConfigElement to be applied to the patterns mapped to the registrationImplements jakarta. Sets the |
| public void | setRunAsRole(final String
the name of the roleName)runAs roleImplements jakarta. Sets the name of the |
| public Set | setServletSecurity(final ServletSecurityElement
the constraint)ServletSecurityElement to be applied to the patterns mapped to this ServletRegistrationImplements jakarta. Sets the |
| deployment | back to summary |
|---|---|
| private final Deployment deployment | |
| managedServlet | back to summary |
|---|---|
| private final ManagedServlet managedServlet | |
| servletInfo | back to summary |
|---|---|
| private final ServletInfo servletInfo | |
| ServletRegistrationImpl | back to summary |
|---|---|
| public ServletRegistrationImpl(final ServletInfo servletInfo, ManagedServlet managedServlet, final Deployment deployment) | |
| 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 | |
| emptyRoleSemantic | back to summary |
|---|---|
| private SecurityInfo. | |
| getClassName | back to summary |
|---|---|
| public String getClassName() Implements jakarta. Doc from jakarta. Gets the fully qualified class name of the Servlet or Filter that is represented by this Registration. | |
| getInitParameter | back to summary |
|---|---|
| public String getInitParameter(final String name) Implements jakarta. Doc from jakarta. 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. | |
| getInitParameters | back to summary |
|---|---|
| public Map Implements jakarta. Doc from jakarta. 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. | |
| getMappings | back to summary |
|---|---|
| public Collection Implements jakarta. Doc from jakarta. Gets the currently available mappings of the Servlet represented by this
If permitted, any changes to the returned
| |
| getName | back to summary |
|---|---|
| public String getName() Implements jakarta. Doc from jakarta. Gets the name of the Servlet or Filter that is represented by this Registration. | |
| getRunAsRole | back to summary |
|---|---|
| public String getRunAsRole() Implements jakarta. Doc from jakarta. Gets the name of the runAs role of the Servlet represented by this | |
| setAsyncSupported | back to summary |
|---|---|
| public void setAsyncSupported(final boolean isAsyncSupported) Implements jakarta. Doc from jakarta. Configures the Servlet or Filter represented by this dynamic Registration as supporting asynchronous operations or not. By default, servlet and filters do not support asynchronous operations. A call to this method overrides any previous setting.
| |
| setInitParameter | back to summary |
|---|---|
| public boolean setInitParameter(final String name, final String value) Implements jakarta. Doc from jakarta. Sets the initialization parameter with the given name and value on the Servlet or Filter that is represented by this Registration.
| |
| setInitParameters | back to summary |
|---|---|
| public Set Implements jakarta. Doc from jakarta. Sets the given initialization parameters on the Servlet or Filter that is represented by this Registration.
The given map of initialization parameters is processed by-value, i.e., for each initialization parameter
contained in the map, this method calls
The returned set is not backed by the | |
| setLoadOnStartup | back to summary |
|---|---|
| public void setLoadOnStartup(final int loadOnStartup) Implements jakarta. Doc from jakarta. Sets the
A loadOnStartup value of greater than or equal to zero indicates to the container the initialization
priority of the Servlet. In this case, the container must instantiate and initialize the Servlet during the
initialization phase of the ServletContext, that is, after it has invoked all of the ServletContextListener objects
configured for the ServletContext at their If loadOnStartup is a negative integer, the container is free to instantiate and initialize the Servlet lazily.
The default value for loadOnStartup is A call to this method overrides any previous setting.
| |
| setMultipartConfig | back to summary |
|---|---|
| public void setMultipartConfig(final MultipartConfigElement multipartConfig) Implements jakarta. Doc from jakarta. Sets the
| |
| setRunAsRole | back to summary |
|---|---|
| public void setRunAsRole(final String roleName) Implements jakarta. Doc from jakarta. Sets the name of the | |
| setServletSecurity | back to summary |
|---|---|
| public Set Implements jakarta. Doc from jakarta. Sets the
This method applies to all mappings added to this
If a URL pattern of this ServletRegistration is an exact target of a
If a URL pattern of this ServletRegistration is an exact target of a security constraint that was established via the
If a URL pattern of this ServletRegistration is neither the exact target of a security constraint that was
established via the
The returned set is not backed by the
| |