Package org.eclipse.jetty.server.handler
Class AbstractHandlerContainer
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.server.handler.AbstractHandlerContainer
- All Implemented Interfaces:
Handler,HandlerContainer,Container,Destroyable,Dumpable,Dumpable.DumpableContainer,LifeCycle
- Direct Known Subclasses:
HandlerCollection,HandlerWrapper,HotSwapHandler
@Deprecated(since="2021-05-27")
public abstract class AbstractHandlerContainer
extends AbstractHandler
implements HandlerContainer
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Abstract Handler Container.
This is the base class for handlers that may contain other handlers.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.server.handler.AbstractHandler
AbstractHandler.ErrorDispatchHandlerNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.ListenerNested 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends HandlerContainer>
TfindContainerOf(HandlerContainer root, Class<T> type, Handler handler) Deprecated.<T extends Handler>
TgetChildHandlerByClass(Class<T> byclass) Deprecated.Handler[]Deprecated.Handler[]getChildHandlersByClass(Class<?> byclass) Deprecated.voidDeprecated.Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandler
destroy, getServer, handleMethods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpableMethods inherited from interface org.eclipse.jetty.server.HandlerContainer
getHandlersMethods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Constructor Details
-
AbstractHandlerContainer
public AbstractHandlerContainer()Deprecated.
-
-
Method Details
-
getChildHandlers
Deprecated.- Specified by:
getChildHandlersin interfaceHandlerContainer- Returns:
- array of all handlers contained by this handler and it's children
-
getChildHandlersByClass
Deprecated.- Specified by:
getChildHandlersByClassin interfaceHandlerContainer- Parameters:
byclass- the child handler class to get- Returns:
- array of all handlers contained by this handler and it's children of the passed type.
-
getChildHandlerByClass
Deprecated.- Specified by:
getChildHandlerByClassin interfaceHandlerContainer- Type Parameters:
T- the type of handler- Parameters:
byclass- the child handler class to get- Returns:
- first handler of all handlers contained by this handler and it's children of the passed type.
-
findContainerOf
public static <T extends HandlerContainer> T findContainerOf(HandlerContainer root, Class<T> type, Handler handler) Deprecated. -
setServer
Deprecated.- Specified by:
setServerin interfaceHandler- Overrides:
setServerin classAbstractHandler
-