Package org.eclipse.jetty.servlet
Class Holder<T>
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.servlet.BaseHolder<T>
org.eclipse.jetty.servlet.Holder<T>
- Type Parameters:
T- the type of holder
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroyInstance(Object instance) Deprecated.dump()Deprecated.Deprecated.getInitParameter(String param) Deprecated.Deprecated.Deprecated.getName()Deprecated.booleanDeprecated.voidsetAsyncSupported(boolean suspendable) Deprecated.voidsetClassName(String className) Deprecated.voidsetDisplayName(String name) Deprecated.voidsetHeldClass(Class<? extends T> held) Deprecated.voidsetInitParameter(String param, String value) Deprecated.voidsetInitParameters(Map<String, String> map) Deprecated.voidDeprecated.The name is a primary key for the held object.toString()Deprecated.Methods inherited from class org.eclipse.jetty.servlet.BaseHolder
doStart, doStop, dump, getClassName, getHeldClass, getServletHandler, getSource, initialize, isInstance, setServletHandlerMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
-
Method Details
-
getDisplayName
Deprecated. -
getInitParameter
Deprecated. -
getInitParameterNames
Deprecated. -
getInitParameters
@ManagedAttribute(value="Initial Parameters", readonly=true) public Map<String,String> getInitParameters()Deprecated. -
getName
Deprecated. -
destroyInstance
Deprecated.- Throws:
Exception
-
setClassName
Deprecated.- Overrides:
setClassNamein classBaseHolder<T>- Parameters:
className- The className to set.
-
setHeldClass
Deprecated.- Overrides:
setHeldClassin classBaseHolder<T>- Parameters:
held- The class to hold
-
setDisplayName
Deprecated. -
setInitParameter
Deprecated. -
setInitParameters
Deprecated. -
setName
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
Deprecated.- Specified by:
dumpin interfaceDumpable- Overrides:
dumpin classBaseHolder<T>
-
toString
Deprecated.- Overrides:
toStringin classAbstractLifeCycle
-