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 java.lang.Object implements ServletRegistration.Dynamic
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.servlet.Registration
Registration.Dynamic
-
Nested classes/interfaces inherited from interface javax.servlet.ServletRegistration
ServletRegistration.Dynamic
-
-
Constructor Summary
Constructors Constructor Description Registration()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Set<java.lang.String>addMapping(java.lang.String... urlPatterns)Deprecated.Adds a servlet mapping with the given URL patterns for the Servlet represented by this ServletRegistration.intgetInitOrder()Deprecated.java.util.Collection<java.lang.String>getMappings()Deprecated.Gets the currently available mappings of the Servlet represented by this ServletRegistration.MultipartConfigElementgetMultipartConfig()Deprecated.java.lang.StringgetRunAsRole()Deprecated.voidsetLoadOnStartup(int loadOnStartup)Deprecated.voidsetMultipartConfig(MultipartConfigElement element)Deprecated.voidsetRunAsRole(java.lang.String role)Deprecated.java.util.Set<java.lang.String>setServletSecurity(ServletSecurityElement securityElement)Deprecated.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.servlet.Registration
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
-
Methods inherited from interface javax.servlet.Registration.Dynamic
setAsyncSupported
-
-
-
-
Method Detail
-
addMapping
public java.util.Set<java.lang.String> addMapping(java.lang.String... urlPatterns)
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
public java.util.Collection<java.lang.String> 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
public java.lang.String getRunAsRole()
Deprecated.- Specified by:
getRunAsRolein interfaceServletRegistration
-
setLoadOnStartup
public void setLoadOnStartup(int loadOnStartup)
Deprecated.- Specified by:
setLoadOnStartupin interfaceServletRegistration.Dynamic
-
getInitOrder
public int getInitOrder()
Deprecated.
-
setMultipartConfig
public void setMultipartConfig(MultipartConfigElement element)
Deprecated.- Specified by:
setMultipartConfigin interfaceServletRegistration.Dynamic
-
getMultipartConfig
public MultipartConfigElement getMultipartConfig()
Deprecated.
-
setRunAsRole
public void setRunAsRole(java.lang.String role)
Deprecated.- Specified by:
setRunAsRolein interfaceServletRegistration.Dynamic
-
setServletSecurity
public java.util.Set<java.lang.String> setServletSecurity(ServletSecurityElement securityElement)
Deprecated.- Specified by:
setServletSecurityin interfaceServletRegistration.Dynamic
-
-