org.eclipse.jetty.server.handler
Class AbstractHandlerContainer
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.server.handler.AbstractHandlerContainer
- All Implemented Interfaces:
- Handler, HandlerContainer, LifeCycle
- Direct Known Subclasses:
- HandlerCollection, HandlerWrapper, HotSwapHandler
public abstract class AbstractHandlerContainer
- extends AbstractHandler
- implements HandlerContainer
Abstract Handler Container.
This is the base class for handlers that may contain other handlers.
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
addLifeCycleListener, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
Methods inherited from interface org.eclipse.jetty.server.Handler |
handle |
AbstractHandlerContainer
public AbstractHandlerContainer()
getChildHandlers
public Handler[] getChildHandlers()
- Specified by:
getChildHandlers
in interface HandlerContainer
- Returns:
- array of all handlers contained by this handler and it's children
getChildHandlersByClass
public Handler[] getChildHandlersByClass(Class<?> byclass)
- Specified by:
getChildHandlersByClass
in interface HandlerContainer
- Returns:
- array of all handlers contained by this handler and it's children of the passed type.
getChildHandlerByClass
public Handler getChildHandlerByClass(Class<?> byclass)
- Specified by:
getChildHandlerByClass
in interface HandlerContainer
- Returns:
- first handler of all handlers contained by this handler and it's children of the passed type.
expandChildren
protected Object expandChildren(Object list,
Class<?> byClass)
expandHandler
protected Object expandHandler(Handler handler,
Object list,
Class<Handler> byClass)
dump
protected void dump(StringBuilder b,
String indent)
- Overrides:
dump
in class AbstractHandler
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.