Package org.eclipse.jetty.server
Interface HandlerContainer
- All Superinterfaces:
LifeCycle
- All Known Implementing Classes:
AbstractHandlerContainer,AntWebAppContext,AntWebAppContext.AntServletHandler,AsyncDelayHandler,BufferedResponseHandler,ConnectHandler,ConstraintSecurityHandler,ContextHandler,ContextHandlerCollection,DebugHandler,FileBufferedResponseHandler,GzipHandler,HandlerCollection,HandlerList,HandlerWrapper,HotSwapHandler,HttpSpiContextHandler,IdleTimeoutHandler,InetAccessHandler,MovedContextHandler,RequestLogHandler,ResourceHandler,RewriteHandler,ScopedHandler,SecuredRedirectHandler,SecurityHandler,Server,ServletContextHandler,ServletHandler,SessionHandler,ShutdownHandler,StatisticsHandler,ThreadLimitHandler,WebAppContext,WebSocketUpgradeHandler
A Handler that contains other Handlers.
The contained handlers may be one (see @{link HandlerWrapper)
or many (see HandlerList or HandlerCollection.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Method Summary
Modifier and TypeMethodDescription<T extends Handler>
TgetChildHandlerByClass(Class<T> byclass) Handler[]Handler[]getChildHandlersByClass(Class<?> byclass) Handler[]Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
-
Method Details
-
getHandlers
- Returns:
- array of handlers directly contained by this handler.
-
getChildHandlers
- Returns:
- array of all handlers contained by this handler and it's children
-
getChildHandlersByClass
- 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
- 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.
-