Class Holder<T>

  • Type Parameters:
    T - the type of holder
    All Implemented Interfaces:
    Dumpable, LifeCycle
    Direct Known Subclasses:
    FilterHolder, ServletHolder

    @ManagedObject("Holder - a container for servlets and the like")
    @Deprecated(since="2021-05-27")
    public abstract class Holder<T>
    extends BaseHolder<T>
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    Holder Specialization of AbstractHolder for servlet-related classes that have init-params etc
    • Method Detail

      • getInitParameter

        public java.lang.String getInitParameter​(java.lang.String param)
        Deprecated.
      • getInitParameterNames

        public java.util.Enumeration<java.lang.String> getInitParameterNames()
        Deprecated.
      • getInitParameters

        @ManagedAttribute(value="Initial Parameters",
                          readonly=true)
        public java.util.Map<java.lang.String,​java.lang.String> getInitParameters()
        Deprecated.
      • destroyInstance

        public void destroyInstance​(java.lang.Object instance)
                             throws java.lang.Exception
        Deprecated.
        Throws:
        java.lang.Exception
      • setClassName

        public void setClassName​(java.lang.String className)
        Deprecated.
        Overrides:
        setClassName in class BaseHolder<T>
        Parameters:
        className - The className to set.
      • setHeldClass

        public void setHeldClass​(java.lang.Class<? extends T> held)
        Deprecated.
        Overrides:
        setHeldClass in class BaseHolder<T>
        Parameters:
        held - The class to hold
      • setDisplayName

        public void setDisplayName​(java.lang.String name)
        Deprecated.
      • setInitParameter

        public void setInitParameter​(java.lang.String param,
                                     java.lang.String value)
        Deprecated.
      • setInitParameters

        public void setInitParameters​(java.util.Map<java.lang.String,​java.lang.String> map)
        Deprecated.
      • setName

        public void setName​(java.lang.String name)
        Deprecated.
        The name is a primary key for the held object. Ensure that the name is set BEFORE adding a Holder (eg ServletHolder or FilterHolder) to a ServletHandler.
        Parameters:
        name - The name to set.
      • setAsyncSupported

        public void setAsyncSupported​(boolean suspendable)
        Deprecated.
      • isAsyncSupported

        public boolean isAsyncSupported()
        Deprecated.
      • dump

        public java.lang.String dump()
        Deprecated.
        Specified by:
        dump in interface Dumpable
        Overrides:
        dump in class BaseHolder<T>