org.eclipse.jetty.server.handler
类 AbstractHandlerContainer

java.lang.Object
  继承者 org.eclipse.jetty.util.component.AbstractLifeCycle
      继承者 org.eclipse.jetty.util.component.AggregateLifeCycle
          继承者 org.eclipse.jetty.server.handler.AbstractHandler
              继承者 org.eclipse.jetty.server.handler.AbstractHandlerContainer
所有已实现的接口:
Handler, HandlerContainer, Destroyable, Dumpable, LifeCycle
直接已知子类:
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.


嵌套类摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
AbstractHandlerContainer()
           
 
方法摘要
 void dump(Appendable out, String indent)
           
protected  Object expandChildren(Object list, Class<?> byClass)
           
protected  Object expandHandler(Handler handler, Object list, Class<Handler> byClass)
           
static
<T extends HandlerContainer>
T
findContainerOf(HandlerContainer root, Class<T> type, Handler handler)
           
<T extends Handler>
T
getChildHandlerByClass(Class<T> byclass)
           
 Handler[] getChildHandlers()
           
 Handler[] getChildHandlersByClass(Class<?> byclass)
           
 
从类 org.eclipse.jetty.server.handler.AbstractHandler 继承的方法
destroy, doStart, doStop, dumpThis, getServer, setServer
 
从类 org.eclipse.jetty.util.component.AggregateLifeCycle 继承的方法
addBean, addBean, contains, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanage
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.eclipse.jetty.server.HandlerContainer 继承的方法
getHandlers
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的方法
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
从接口 org.eclipse.jetty.server.Handler 继承的方法
handle
 

构造方法详细信息

AbstractHandlerContainer

public AbstractHandlerContainer()
方法详细信息

getChildHandlers

public Handler[] getChildHandlers()
指定者:
接口 HandlerContainer 中的 getChildHandlers
返回:
array of all handlers contained by this handler and it's children

getChildHandlersByClass

public Handler[] getChildHandlersByClass(Class<?> byclass)
指定者:
接口 HandlerContainer 中的 getChildHandlersByClass
返回:
array of all handlers contained by this handler and it's children of the passed type.

getChildHandlerByClass

public <T extends Handler> T getChildHandlerByClass(Class<T> byclass)
指定者:
接口 HandlerContainer 中的 getChildHandlerByClass
返回:
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)

findContainerOf

public static <T extends HandlerContainer> T findContainerOf(HandlerContainer root,
                                                             Class<T> type,
                                                             Handler handler)

dump

public void dump(Appendable out,
                 String indent)
          throws IOException
指定者:
接口 Dumpable 中的 dump
覆盖:
AggregateLifeCycle 中的 dump
抛出:
IOException


Copyright © 2013. All Rights Reserved.