Package org.eclipse.jetty.servlet
Class ServletHolder.Registration
java.lang.Object
org.eclipse.jetty.servlet.ServletHolder.Registration
- All Implemented Interfaces:
Registration,Registration.Dynamic,ServletRegistration,ServletRegistration.Dynamic
- Enclosing class:
ServletHolder
@Deprecated(since="2021-05-27")
public class ServletHolder.Registration
extends Object
implements ServletRegistration.Dynamic
Deprecated.
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.servlet.Registration
Registration.DynamicNested classes/interfaces inherited from interface javax.servlet.ServletRegistration
ServletRegistration.Dynamic -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMapping(String... urlPatterns) Deprecated.Adds a servlet mapping with the given URL patterns for the Servlet represented by this ServletRegistration.intDeprecated.Deprecated.Gets the currently available mappings of the Servlet represented by this ServletRegistration.Deprecated.Deprecated.voidsetLoadOnStartup(int loadOnStartup) Deprecated.voidsetMultipartConfig(MultipartConfigElement element) Deprecated.voidsetRunAsRole(String role) Deprecated.setServletSecurity(ServletSecurityElement securityElement) Deprecated.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.Registration
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParametersMethods inherited from interface javax.servlet.Registration.Dynamic
setAsyncSupported
-
Constructor Details
-
Registration
public Registration()Deprecated.
-
-
Method Details
-
addMapping
Deprecated.Description copied from interface: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 interfaceServletRegistration- 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
-
getMappings
Deprecated.Description copied from interface: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 interfaceServletRegistration- Returns:
- a (possibly empty) Collection of the currently available mappings of the Servlet represented by this ServletRegistration
-
getRunAsRole
Deprecated.- Specified by:
getRunAsRolein interfaceServletRegistration
-
setLoadOnStartup
public void setLoadOnStartup(int loadOnStartup) Deprecated.- Specified by:
setLoadOnStartupin interfaceServletRegistration.Dynamic
-
getInitOrder
public int getInitOrder()Deprecated. -
setMultipartConfig
Deprecated.- Specified by:
setMultipartConfigin interfaceServletRegistration.Dynamic
-
getMultipartConfig
Deprecated. -
setRunAsRole
Deprecated.- Specified by:
setRunAsRolein interfaceServletRegistration.Dynamic
-
setServletSecurity
Deprecated.- Specified by:
setServletSecurityin interfaceServletRegistration.Dynamic
-