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
- All Implemented Interfaces:
org.eclipse.jetty.util.component.Dumpable
,org.eclipse.jetty.util.component.LifeCycle
- Direct Known Subclasses:
FilterHolder
,ServletHolder
@ManagedObject("Holder - a container for servlets and the like")
public abstract class Holder<T>
extends BaseHolder<T>
Holder
Specialization of AbstractHolder for servlet-related classes that
have init-params etc
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
protected class
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener
-
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPING
Fields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroyInstance
(Object instance) dump()
getInitParameter
(String param) getName()
boolean
void
setAsyncSupported
(boolean suspendable) void
setClassName
(String className) void
setDisplayName
(String name) void
setHeldClass
(Class<? extends T> held) void
setInitParameter
(String param, String value) void
setInitParameters
(Map<String, String> map) protected void
setInstance
(T instance) void
The name is a primary key for the held object.toString()
Methods inherited from class org.eclipse.jetty.servlet.BaseHolder
createInstance, doStart, doStop, dump, getClassName, getHeldClass, getInstance, getServletContext, getServletHandler, getSource, illegalStateIfContextStarted, initialize, isInstance, setServletHandler, unwrap, wrap
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelf
-
Constructor Details
-
Holder
-
-
Method Details
-
getDisplayName
-
getInitParameter
-
getInitParameterNames
-
getInitParameters
-
getName
-
setInstance
- Overrides:
setInstance
in classBaseHolder<T>
-
destroyInstance
- Throws:
Exception
-
setClassName
- Overrides:
setClassName
in classBaseHolder<T>
- Parameters:
className
- The className to set.
-
setHeldClass
- Overrides:
setHeldClass
in classBaseHolder<T>
- Parameters:
held
- The class to hold
-
setDisplayName
-
setInitParameter
-
setInitParameters
-
setName
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) -
isAsyncSupported
public boolean isAsyncSupported() -
dump
- Specified by:
dump
in interfaceorg.eclipse.jetty.util.component.Dumpable
- Overrides:
dump
in classBaseHolder<T>
-
toString
- Overrides:
toString
in classorg.eclipse.jetty.util.component.AbstractLifeCycle
-