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.Wrapperthat conditionally handles aRequest.An AbstractConditionalHandler.APredicateoverRequestthat tests thenameof theconnectorobtained fromRequest.getConnectionMetaData()An implementation ofConditionalHandlerthat, if conditions are met, will not do any further handling by returningfalsefromConditionalHandler.DontHandle.onConditionsMet(Request, Response, Callback).An abstract implementation ofConditionalHandlerthat, if conditions are not met, will call theConditionalHandler.nextHandler(Request, Response, Callback)fromConditionalHandler.ElseNext.onConditionsNotMet(Request, Response, Callback).APredicateoverRequestthat tests anInetAddressPatternagainst thegetRemoteSocketAddress()ofRequest.getConnectionMetaData().An implementation ofConditionalHandlerthat, if conditions are met, will reject the request by sending a response (by default aHttpStatus.FORBIDDEN_403).An implementation ofConditionalHandlerthat, if conditions are met, will skip the nextHandlerby invoking itsnext Handler.Implementation of aHandlerthat 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 containedContextHandlers.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.AConditionalHandlerthat can eagerly load content asynchronously before calling thenext handler.An eager content processor, created by aEagerContentHandler.ContentLoaderFactoryto asynchronous load content from aRequestbefore calling theRequest.Handler.handle(Request, Response, Callback)method of the passedHandler.A factory to create newEagerContentHandler.ContentLoaderinstances for a specific mime type.AnEagerContentHandler.ContentLoaderFactoryforMimeTypes.Type.FORM_ENCODEDcontent, that usesFormFields.onFields(Request, Charset, int, int, Promise.Invocable)to asynchronously load and parse the content.AnEagerContentHandler.ContentLoaderFactoryforMimeTypes.Type.MULTIPART_FORM_DATAcontent, that usesMultiPartFormData.onParts(Content.Source, Attributes, String, MultiPartConfig, Promise.Invocable)to asynchronously load and parse the content.AnEagerContentHandler.ContentLoaderFactoryfor 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.Wrapperthat fires events during the processing of the requests.Handler to track active requests and allow them to gracefully complete.AHandlerContainerthat allows a hot swap of a wrapped handler.Handler to adjust the idle timeout of requests while dispatched.InetAddress Access HandlerAHandlerthat helps recording the total latency of the requests executed by the wrapped handler.Enable Jetty style JMX MBeans from within a ContextAContextHandlerwith a childHandlerthat redirects to a configurable URI.A Handler that delegates to other handlers through a configuredPathMappings.A PathMappingsHandler that does not change theContextor any other aspect of the requestA quality of serviceHandlerthatconditionallylimits the number of concurrent requests, to provide more predictable end-user experience in case descendantHandlers have limited capacity.AnErrorHandlerthat can re-handle a request at an error page location.AnReHandlingErrorHandlerthat 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.AHandlerthat initiates a Shutdown of the Jetty Server it belongs to.AHandlerthat can limit the size of message bodies in requests and responses.A troubleshootingHandler.Wrapperthat tracks whetherHandler/Request/Responseasynchronous 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_filesfunctionality. 
Handler.Abstract