Package org.eclipse.jetty.server
Interface HandlerContainer
-
- All Superinterfaces:
org.eclipse.jetty.util.component.LifeCycle
- All Known Implementing Classes:
AbstractHandlerContainer
,AsyncDelayHandler
,BufferedResponseHandler
,ContextHandler
,ContextHandlerCollection
,DebugHandler
,GzipHandler
,HandlerCollection
,HandlerList
,HandlerWrapper
,HotSwapHandler
,IdleTimeoutHandler
,InetAccessHandler
,IPAccessHandler
,MovedContextHandler
,RequestLogHandler
,ResourceHandler
,ScopedHandler
,Server
,SessionHandler
,ShutdownHandler
,StatisticsHandler
,ThreadLimitHandler
@ManagedObject("Handler of Multiple Handlers") public interface HandlerContainer extends org.eclipse.jetty.util.component.LifeCycle
A Handler that contains other Handlers.The contained handlers may be one (see @{link
HandlerWrapper
) or many (seeHandlerList
orHandlerCollection
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Handler>
TgetChildHandlerByClass(java.lang.Class<T> byclass)
Handler[]
getChildHandlers()
Handler[]
getChildHandlersByClass(java.lang.Class<?> byclass)
Handler[]
getHandlers()
-
-
-
Method Detail
-
getHandlers
@ManagedAttribute("handlers in this container") Handler[] getHandlers()
- Returns:
- array of handlers directly contained by this handler.
-
getChildHandlers
@ManagedAttribute("all contained handlers") Handler[] getChildHandlers()
- Returns:
- array of all handlers contained by this handler and it's children
-
getChildHandlersByClass
Handler[] getChildHandlersByClass(java.lang.Class<?> byclass)
- 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
<T extends Handler> T getChildHandlerByClass(java.lang.Class<T> byclass)
- 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.
-
-