- All Superinterfaces:
org.eclipse.jetty.util.component.Destroyable,Handler,org.eclipse.jetty.util.thread.Invocable,org.eclipse.jetty.util.component.LifeCycle,Request.Handler
- All Known Subinterfaces:
Handler.Collection,Handler.Singleton,HandlerContainer
- All Known Implementing Classes:
AbstractHandlerContainer,BufferedResponseHandler,ConnectHandler,ContextHandler,ContextHandlerCollection,DebugHandler,DelayedHandler,EventsHandler,GracefulHandler,GzipHandler,Handler.AbstractContainer,Handler.Sequence,Handler.Wrapper,HotSwapHandler,IdleTimeoutHandler,InetAccessHandler,LatencyRecordingHandler,MovedContextHandler,PathMappingsHandler,ProxiedRequestHandler,ResourceHandler,ResourceHandler.ResourceContext,SecuredRedirectHandler,Server,ShutdownHandler,SizeLimitHandler,StatisticsHandler,StatisticsHandler.MinimumDataRateHandler,ThreadLimitHandler,TryPathsHandler
- Enclosing interface:
Handler
A Handler that contains one or more other Handlers.
-
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
org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.TaskNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
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) Get a list of descendants of the passed type.Methods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationTypeMethods 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
handle
-
Method Details
-
getHandlers
- Returns:
- an immutable collection of
Handlers directly contained by thisHandler.
-
getDescendants
- Returns:
- an immutable collection of
Handlers descendants of thisHandler.
-
getDescendants
Get a list of descendants of the passed type. The default implementation is not memory efficient and should be overridden.- Type Parameters:
T- the type ofHandler- Parameters:
type- the type ofHandler- Returns:
- an immutable collection of
Handlers of the given type, descendants of thisHandler
-
getDescendant
- Type Parameters:
T- the type ofHandler- Parameters:
type- the type ofHandler- Returns:
- the first
Handlerof the given type, descendants of thisHandler, or null if no suchHandlerexist
-
getContainer
- Type Parameters:
T- the type ofHandler- Parameters:
handler- the childHandlertype- the type ofHandler- Returns:
- the
Handler.Containerof the given type, parent of the givenHandler
-