Package org.eclipse.jetty.server
Interface Handler.Container
- All Superinterfaces:
Destroyable,Handler,Invocable,LifeCycle,Request.Handler
- All Known Subinterfaces:
Handler.Collection,Handler.Singleton,HandlerContainer
- All Known Implementing Classes:
AbstractHandlerContainer,BufferedResponseHandler,CompressionHandler,ConditionalHandler,ConditionalHandler.Abstract,ConditionalHandler.DontHandle,ConditionalHandler.ElseNext,ConditionalHandler.NextElseReject,ConditionalHandler.Reject,ConditionalHandler.SkipNext,ConnectHandler,ConstraintSecurityHandler,ConstraintSecurityHandler,ContextHandler,ContextHandler.CoreContextHandler,ContextHandler.CoreContextHandler,ContextHandlerCollection,CoreAppContext,CrossOriginHandler,DebugHandler,DelayedHandler,DoSHandler,EagerContentHandler,EagerFormHandler,EagerFormHandler,EventsHandler,GracefulHandler,GzipHandler,Handler.AbstractContainer,Handler.Sequence,Handler.Wrapper,HotSwapHandler,HttpSpiContextHandler,IdleTimeoutHandler,InetAccessHandler,LatencyRecordingHandler,MovedContextHandler,PathMappingsHandler,PathMappingsHandler.NoContext,QoSHandler,ResourceHandler,ResourceHandler.ResourceContext,RewriteHandler,SecuredRedirectHandler,SecurityHandler,SecurityHandler.PathMapped,SecurityHandler.PathMethodMapped,Server,ServletContextHandler,ServletContextHandler,ServletHandler,ServletHandler,SessionHandler,SessionHandler,SessionHandler,ShutdownHandler,SizeLimitHandler,SizeLimitHandler,StateTrackingHandler,StaticAppContext,StatisticsHandler,StatisticsHandler.MinimumDataRateHandler,ThreadLimitHandler,TryPathsHandler,WebAppContext,WebAppContext,WebSocketUpgradeHandler,WebSocketUpgradeHandler
- Enclosing interface:
- Handler
A Handler that contains one or more other Handlers.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Handler
Handler.Abstract, Handler.AbstractContainer, Handler.Collection, Handler.Container, Handler.Sequence, Handler.Singleton, Handler.WrapperNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.TaskNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.server.Request.Handler
Request.Handler.AbortException -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking, NOOP -
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends Handler.Container>
TgetContainer(Handler handler, Class<T> type) default <T extends Handler>
TgetDescendant(Class<T> type) getDescendants(Class<T> type) Methods inherited from interface org.eclipse.jetty.util.component.Destroyable
destroyMethods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stopMethods inherited from interface org.eclipse.jetty.server.Request.Handler
getInvocationType, handle
-
Method Details
-
getHandlers
@ManagedAttribute(value="The direct children Handlers of this Container", readonly=true) List<Handler> getHandlers()- Returns:
- an immutable collection of
Handlers directly contained by thisHandler.
-
getDescendants
- Returns:
- an immutable collection of
Handlers descendants of thisHandler.
-
getDescendants
- Type Parameters:
T- the type of the descendantHandler- Parameters:
type- the class of the descendantHandler- Returns:
- an immutable collection of
Handlers of the given type, descendants of thisHandler
-
getDescendant
- Type Parameters:
T- the type of the descendantHandler- Parameters:
type- the class of the descendantHandler- Returns:
- the first
Handlerof the given type, descendants of thisHandler, or null if no suchHandlerexist
-
getContainer
- Type Parameters:
T- the type of the containerHandler- Parameters:
handler- the descendantHandlertype- the class of the containerHandler- Returns:
- the
Handler.Containerdescendant of thisHandlerthat is the ancestor of the givenHandler
-