Package org.eclipse.jetty.server.handler
package org.eclipse.jetty.server.handler
Jetty Server : Core Handler API
-
ClassDescriptionDeprecated.Deprecated.A Handler that can apply a mechanism to buffer the entire response content until the output is closed.A
Handler.Wrapper
that conditionally handles aRequest
.An AbstractConditionalHandler
.APredicate
overRequest
that tests thename
of theconnector
obtained fromRequest.getConnectionMetaData()
An implementation ofConditionalHandler
that, if conditions are met, will not do any further handling by returningfalse
fromConditionalHandler.DontHandle.onConditionsMet(Request, Response, Callback)
.An abstract implementation ofConditionalHandler
that, if conditions are not met, will call theConditionalHandler.nextHandler(Request, Response, Callback)
fromConditionalHandler.ElseNext.onConditionsNotMet(Request, Response, Callback)
.APredicate
overRequest
that tests anInetAddressPattern
against thegetRemoteSocketAddress()
ofRequest.getConnectionMetaData()
.An implementation ofConditionalHandler
that, if conditions are met, will reject the request by sending a response (by default aHttpStatus.FORBIDDEN_403
).An implementation ofConditionalHandler
that, if conditions are met, will skip the nextHandler
by invoking itsnext Handler
.Implementation of aHandler
that supports HTTP CONNECT.Listener for all threads entering context scope, including async IO callbacksCreates a Map of contexts to it's contained handlers based on the context path and virtual hosts of any containedContextHandler
s.Implementation of the CORS protocol defined by the fetch standard.Debug Handler.This default handler will deal with unhandled requests in the server.Deprecated, for removal: This API element is subject to removal in a future version.A Denial of Service Handler that protects from attacks by limiting the request rate from remote clients.A Handler to reject DoS requests after first delaying them.The Tracker implements the classic Leaky Bucket Algorithm.A Handler to reject DoS requests with a status code or failure.A RateTracker is associated with an id, and stores request rate data.Dumps GET and POST requests as HTML response content.AConditionalHandler
that can eagerly load content asynchronously before calling thenext handler
.An eager content processor, created by aEagerContentHandler.ContentLoaderFactory
to asynchronous load content from aRequest
before calling theRequest.Handler.handle(Request, Response, Callback)
method of the passedHandler
.A factory to create newEagerContentHandler.ContentLoader
instances for a specific mime type.AnEagerContentHandler.ContentLoaderFactory
forMimeTypes.Type.FORM_ENCODED
content, that usesFormFields.onFields(Request, Charset, int, int, Promise.Invocable)
to asynchronously load and parse the content.AnEagerContentHandler.ContentLoaderFactory
forMimeTypes.Type.MULTIPART_FORM_DATA
content, that usesMultiPartFormData.onParts(Content.Source, Attributes, String, MultiPartConfig, Promise.Invocable)
to asynchronously load and parse the content.AnEagerContentHandler.ContentLoaderFactory
for any content, that usesRetainable.retain()
to eagerly load content with zero copies, until all content is read or a maximum size is exceeded.Delay dispatch until all content or an effective buffer size is reachedA utility handler that echoes content from the request to the response.Handler for Error pages An ErrorHandler is registered withServer.setErrorHandler(Request.Handler)
.AHandler.Wrapper
that fires events during the processing of the requests.Handler to track active requests and allow them to gracefully complete.AHandlerContainer
that allows a hot swap of a wrapped handler.Handler to adjust the idle timeout of requests while dispatched.InetAddress Access HandlerAHandler
that helps recording the total latency of the requests executed by the wrapped handler.Enable Jetty style JMX MBeans from within a ContextAContextHandler
with a childHandler
that redirects to a configurable URI.A Handler that delegates to other handlers through a configuredPathMappings
.A PathMappingsHandler that does not change theContext
or any other aspect of the requestA quality of serviceHandler
thatconditionally
limits the number of concurrent requests, to provide more predictable end-user experience in case descendantHandler
s have limited capacity.AnErrorHandler
that can re-handle a request at an error page location.AnReHandlingErrorHandler
that uses a map of error codes to select a page.Resource Handler will serve static content and handle If-Modified-Since headers.Utility class to create a ContextHandler containing a ResourceHandler.Forces a redirect to the secure form of the resource before allowed to access the resource.AHandler
that initiates a Shutdown of the Jetty Server it belongs to.AHandler
that can limit the size of message bodies in requests and responses.A troubleshootingHandler.Wrapper
that tracks whetherHandler
/Request
/Response
asynchronous APIs are properly used by applications.Listener of events emitted byStateTrackingHandler
.Checks that the wrapped handler can read/write at a minimal rate of N bytes per second.Handler to limit the number of concurrent threads per remote IP address, for DOS protection.Inspired by nginx'stry_files
functionality.
Handler.Abstract