org.eclipse.jetty.server
接口 HandlerContainer

所有超级接口:
LifeCycle
所有已知实现类:
AbstractHandlerContainer, ConnectHandler, ConstraintSecurityHandler, ContextHandler, ContextHandlerCollection, DebugHandler, GzipHandler, HandlerCollection, HandlerList, HandlerWrapper, HotSwapHandler, HttpSpiContextHandler, IPAccessHandler, MovedContextHandler, ProxyHandler, RequestLogHandler, ResourceHandler, 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.


嵌套类摘要
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
方法摘要
<T extends Handler>
T
getChildHandlerByClass(Class<T> byclass)
           
 Handler[] getChildHandlers()
           
 Handler[] getChildHandlersByClass(Class<?> byclass)
           
 Handler[] getHandlers()
           
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的方法
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

方法详细信息

getHandlers

Handler[] getHandlers()
返回:
array of handlers directly contained by this handler.

getChildHandlers

Handler[] getChildHandlers()
返回:
array of all handlers contained by this handler and it's children

getChildHandlersByClass

Handler[] getChildHandlersByClass(Class<?> byclass)
参数:
byclass -
返回:
array of all handlers contained by this handler and it's children of the passed type.

getChildHandlerByClass

<T extends Handler> T getChildHandlerByClass(Class<T> byclass)
参数:
byclass -
返回:
first handler of all handlers contained by this handler and it's children of the passed type.


Copyright © 2013. All Rights Reserved.