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.
  • Constructor Details

    • Registration

      public Registration()
      Deprecated.
  • Method Details

    • addMapping

      public Set<String> addMapping(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 interface ServletRegistration
      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 Collection<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 interface ServletRegistration
      Returns:
      a (possibly empty) Collection of the currently available mappings of the Servlet represented by this ServletRegistration
    • getRunAsRole

      public String getRunAsRole()
      Deprecated.
      Specified by:
      getRunAsRole in interface ServletRegistration
    • setLoadOnStartup

      public void setLoadOnStartup(int loadOnStartup)
      Deprecated.
      Specified by:
      setLoadOnStartup in interface ServletRegistration.Dynamic
    • getInitOrder

      public int getInitOrder()
      Deprecated.
    • setMultipartConfig

      public void setMultipartConfig(MultipartConfigElement element)
      Deprecated.
      Specified by:
      setMultipartConfig in interface ServletRegistration.Dynamic
    • getMultipartConfig

      public MultipartConfigElement getMultipartConfig()
      Deprecated.
    • setRunAsRole

      public void setRunAsRole(String role)
      Deprecated.
      Specified by:
      setRunAsRole in interface ServletRegistration.Dynamic
    • setServletSecurity

      public Set<String> setServletSecurity(ServletSecurityElement securityElement)
      Deprecated.
      Specified by:
      setServletSecurity in interface ServletRegistration.Dynamic