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.int
getInitOrder()
Deprecated.java.util.Collection<java.lang.String>
getMappings()
Deprecated.Gets the currently available mappings of the Servlet represented by this ServletRegistration.MultipartConfigElement
getMultipartConfig()
Deprecated.java.lang.String
getRunAsRole()
Deprecated.void
setLoadOnStartup(int loadOnStartup)
Deprecated.void
setMultipartConfig(MultipartConfigElement element)
Deprecated.void
setRunAsRole(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:ServletRegistration
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.- Specified by:
addMapping
in 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:ServletRegistration
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.- Specified by:
getMappings
in 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:
getRunAsRole
in interfaceServletRegistration
-
setLoadOnStartup
public void setLoadOnStartup(int loadOnStartup)
Deprecated.- Specified by:
setLoadOnStartup
in interfaceServletRegistration.Dynamic
-
getInitOrder
public int getInitOrder()
Deprecated.
-
setMultipartConfig
public void setMultipartConfig(MultipartConfigElement element)
Deprecated.- Specified by:
setMultipartConfig
in interfaceServletRegistration.Dynamic
-
getMultipartConfig
public MultipartConfigElement getMultipartConfig()
Deprecated.
-
setRunAsRole
public void setRunAsRole(java.lang.String role)
Deprecated.- Specified by:
setRunAsRole
in interfaceServletRegistration.Dynamic
-
setServletSecurity
public java.util.Set<java.lang.String> setServletSecurity(ServletSecurityElement securityElement)
Deprecated.- Specified by:
setServletSecurity
in interfaceServletRegistration.Dynamic
-
-