org.eclipse.jetty.server
Interface HandlerContainer
- All Superinterfaces:
- LifeCycle
- All Known Implementing Classes:
- AbstractHandlerContainer, ConnectHandler, ConstraintSecurityHandler, ContextHandler, ContextHandlerCollection, DebugHandler, HandlerCollection, HandlerList, HandlerWrapper, HotSwapHandler, IPAccessHandler, MovedContextHandler, ProxyHandler, RequestLogHandler, RewriteHandler, ScopedHandler, SecurityHandler, Server, ServletContextHandler, ServletHandler, ServletHandler, SessionHandler, StatisticsHandler, WebAppContext, WebSocketHandler
public interface HandlerContainer
- extends LifeCycle
A Handler that contains other Handlers.
The contained handlers may be one (see @{link HandlerWrapper
)
or many (see HandlerList
or HandlerCollection
.
getHandlers
Handler[] getHandlers()
- Returns:
- array of handlers directly contained by this handler.
getChildHandlers
Handler[] getChildHandlers()
- Returns:
- array of all handlers contained by this handler and it's children
getChildHandlersByClass
Handler[] getChildHandlersByClass(java.lang.Class<?> byclass)
- Parameters:
byclass
-
- 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)
- Parameters:
byclass
-
- Returns:
- first handler of all handlers contained by this handler and it's children of the passed type.
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.