Class ServletHolder.Registration

    • Constructor Detail

      • Registration

        public Registration()
        Deprecated.
    • 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 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 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 interface ServletRegistration
        Returns:
        a (possibly empty) Collection of the currently available mappings of the Servlet represented by this ServletRegistration
      • getInitOrder

        public int getInitOrder()
        Deprecated.