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
,ConditionalHandler
,ConditionalHandler.Abstract
,ConditionalHandler.DontHandle
,ConditionalHandler.ElseNext
,ConditionalHandler.Reject
,ConditionalHandler.SkipNext
,ConnectHandler
,ConstraintSecurityHandler
,ContextHandler
,ContextHandlerCollection
,CrossOriginHandler
,DebugHandler
,DelayedHandler
,EagerFormHandler
,EventsHandler
,GracefulHandler
,GzipHandler
,Handler.AbstractContainer
,Handler.Sequence
,Handler.Wrapper
,HotSwapHandler
,HttpSpiContextHandler
,IdleTimeoutHandler
,InetAccessHandler
,LatencyRecordingHandler
,MovedContextHandler
,PathMappingsHandler
,QoSHandler
,ResourceHandler
,ResourceHandler.ResourceContext
,RewriteHandler
,SecuredRedirectHandler
,SecurityHandler
,SecurityHandler.PathMapped
,Server
,ServletContextHandler
,ServletHandler
,SessionHandler
,SessionHandler
,ShutdownHandler
,SizeLimitHandler
,StateTrackingHandler
,StatisticsHandler
,StatisticsHandler.MinimumDataRateHandler
,ThreadLimitHandler
,TryPathsHandler
,WebAppContext
,WebSocketUpgradeHandler
,WebSocketUpgradeHandler
- Enclosing interface:
- Handler
A Handler
that contains one or more other Handler
s.
- 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.Wrapper
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.Task
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
Nested 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
destroy
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
Methods 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
Handler
s directly contained by thisHandler
.
-
getDescendants
- Returns:
- an immutable collection of
Handler
s descendants of thisHandler
.
-
getDescendants
- Type Parameters:
T
- the type of the descendantHandler
- Parameters:
type
- the class of the descendantHandler
- Returns:
- an immutable collection of
Handler
s 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
Handler
of the given type, descendants of thisHandler
, or null if no suchHandler
exist
-
getContainer
- Type Parameters:
T
- the type of the containerHandler
- Parameters:
handler
- the descendantHandler
type
- the class of the containerHandler
- Returns:
- the
Handler.Container
descendant of thisHandler
that is the ancestor of the givenHandler
-