Class ServletHolder

    • Constructor Detail

      • ServletHolder

        public ServletHolder()
        Deprecated.
        Constructor .
      • ServletHolder

        public ServletHolder​(Source creator)
        Deprecated.
        Constructor .
        Parameters:
        creator - the holder source
      • ServletHolder

        public ServletHolder​(Servlet servlet)
        Deprecated.
        Constructor for existing servlet.
        Parameters:
        servlet - the servlet
      • ServletHolder

        public ServletHolder​(String name,
                             Class<? extends Servlet> servlet)
        Deprecated.
        Constructor for servlet class.
        Parameters:
        name - the name of the servlet
        servlet - the servlet class
      • ServletHolder

        public ServletHolder​(String name,
                             Servlet servlet)
        Deprecated.
        Constructor for servlet class.
        Parameters:
        name - the servlet name
        servlet - the servlet
      • ServletHolder

        public ServletHolder​(Class<? extends Servlet> servlet)
        Deprecated.
        Constructor for servlet class.
        Parameters:
        servlet - the servlet class
    • Method Detail

      • getUnavailableException

        public UnavailableException getUnavailableException()
        Deprecated.
        Returns:
        The unavailable exception or null if not unavailable
      • setServlet

        public void setServlet​(Servlet servlet)
        Deprecated.
      • setInitOrder

        public void setInitOrder​(int order)
        Deprecated.
        Set the initialize order.

        Holders with order<0, are initialized on use. Those with order>=0 are initialized in increasing order when the handler is started.

        Parameters:
        order - the servlet init order
      • equals

        public boolean equals​(Object o)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • setUserRoleLink

        public void setUserRoleLink​(String name,
                                    String link)
        Deprecated.
        Link a user role. Translate the role name used by a servlet, to the link name used by the container.
        Parameters:
        name - The role name as used by the servlet
        link - The role name as used by the container.
      • getUserRoleLink

        public String getUserRoleLink​(String name)
        Deprecated.
        get a user role link.
        Parameters:
        name - The name of the role
        Returns:
        The name as translated by the link. If no link exists, the name is returned.
      • setForcedPath

        public void setForcedPath​(String forcedPath)
        Deprecated.
        Parameters:
        forcedPath - The forcedPath to set.
      • isEnabled

        public boolean isEnabled()
        Deprecated.
      • setEnabled

        public void setEnabled​(boolean enabled)
        Deprecated.
      • getServletInstance

        public Servlet getServletInstance()
        Deprecated.
        Get the servlet instance (no initialization done).
        Returns:
        The servlet or null
      • isAvailable

        public boolean isAvailable()
        Deprecated.
        Returns:
        true if the holder is started and is not unavailable
      • setRunAsRole

        public void setRunAsRole​(String role)
        Deprecated.
      • getNameOfJspClass

        public String getNameOfJspClass​(String jsp)
        Deprecated.
        Parameters:
        jsp - the jsp-file
        Returns:
        the simple classname of the jsp
      • getPackageOfJspClass

        public String getPackageOfJspClass​(String jsp)
        Deprecated.
      • getJspPackagePrefix

        public String getJspPackagePrefix()
        Deprecated.
        Returns:
        the package for all jsps
      • getClassNameForJsp

        public String getClassNameForJsp​(String jsp)
        Deprecated.
        Parameters:
        jsp - the jsp-file from web.xml
        Returns:
        the fully qualified classname
      • dump

        public void dump​(Appendable out,
                         String indent)
                  throws IOException
        Deprecated.
        Description copied from interface: Dumpable
        Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
        Specified by:
        dump in interface Dumpable
        Overrides:
        dump in class BaseHolder<Servlet>
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        IOException - if unable to write to Appendable