All Classes and Interfaces
Class
Description
Provides the common handling for
ConnectionFactory implementations.An abstract implementation of
Connector that provides a ConnectionFactory mechanism
for creating Connection instances for various protocols (HTTP, SSL, etc).Deprecated.
Deprecated.
An
AbstractConnection that also implements ConnectionMetaData with fixed
local and remote addresses.An abstract Network Connector.
A Listener that limits the rate at which new connections are accepted
Interface to check aliases.
This will approve any alias to anything inside the
ContextHandlers resource base which
is not protected by a protected target as defined by the ContextHandler protected targets at start.An asynchronously writing RequestLogWriter
A Handler that can apply a
mechanism to buffer the entire response content until the output is closed.
Common components made available via a
Request.A
Handler.Wrapper that conditionally handles a Request.An Abstract
ConditionalHandler.A
Predicate over Request that tests the name of the
connector obtained from Request.getConnectionMetaData()An implementation of
ConditionalHandler that, if conditions are met, will not do any further
handling by returning false from ConditionalHandler.DontHandle.onConditionsMet(Request, Response, Callback).An abstract implementation of
ConditionalHandler that, if conditions are not met, will call
the ConditionalHandler.nextHandler(Request, Response, Callback) from ConditionalHandler.ElseNext.onConditionsNotMet(Request, Response, Callback).A
Predicate over Request that tests an InetAddressPattern
against the getRemoteSocketAddress() of
Request.getConnectionMetaData().An implementation of
ConditionalHandler that, if conditions are met, will reject
the request by sending a response (by default a HttpStatus.FORBIDDEN_403).An implementation of
ConditionalHandler that, if conditions are met, will skip the next Handler by
invoking its next Handler.Implementation of a
Handler that supports HTTP CONNECT.A Factory to create
Connection instances for Connectors.A ConnectionFactory that can configure the connector.
Connections created by this factory MUST implement
Connection.UpgradeTo.The possible outcomes of the
ConnectionFactory.Detecting.detect(ByteBuffer) method.Deprecated, for removal: This API element is subject to removal in a future version.
use
NetworkConnectionLimit insteadA
Connector accept connections and data from remote peers,
and allows applications to send data to remote peers, by setting up
the machinery needed to handle such tasks.A context for handling an
Request.Listener for all threads entering context scope, including async IO callbacks
Creates a
Map of contexts to it's contained handlers based
on the context path and virtual hosts of any contained
ContextHandlers.Cookie parser
Implementation of the CORS protocol defined by the
fetch standard.
A flexible RequestLog, which produces log strings in a customizable format.
Record holding extra detail for logging
Debug Handler.
Default Handler.
Interface that can be implemented by ContextHandlers within Environments to allow configuration
to be passed from the DeploymentManager without dependencies on the Deployment module itself.
A
ConnectionFactory combining multiple ConnectionFactory.Detecting instances that will upgrade to
the first one recognizing the bytes in the buffer.Handler for Error pages
An ErrorHandler is registered with
Server.setErrorHandler(Request.Handler).A
Handler.Wrapper that fires events during the processing of the requests.A
CompletableFuture that is completed once a application/x-www-form-urlencoded
content has been parsed asynchronously from the Content.Source.Customize Requests for Proxy Forwarding.
Ordered Source Enum.
Handler to track active requests and allow them to gracefully complete.
A Jetty component that handles HTTP requests, of any version (HTTP/1.1, HTTP/2 or HTTP/3).
An abstract implementation of
Handler that is a ContainerLifeCycle.An abstract
Handler with a Invocable.InvocationType.NON_BLOCKING
invocation type.A
Handler.Abstract that implements Handler.Container.A
Handler.Container that can contain multiple other Handlers.A
Handler that contains one or more other Handlers.A
Handler.Container that contains an ordered list of children Handlers
whose Request.Handler.handle(Request, Response, Callback) method is invoked
in sequence on each child until a child returns true.A
Handler.Container that can contain one single other Handler.An implementation of
Handler.Singleton, which is a Handler.Container
that wraps one single other Handler.Deprecated.
Display an optional Warning Message if the {jetty.home} and {jetty.base} are the same directory.
Adds a missing
Host header (for example, HTTP 1.0 or 2.0 requests).A
HandlerContainer that allows a hot swap of a wrapped handler.Represents the state of an HTTP request/response cycle.
The factory that creates default implementations of
HttpChannel.A factory for
HttpChannel instances.HTTP Configuration.
An interface that allows a request object to be customized
for a particular HTTP connector configuration.
A Connection Factory for HTTP Connections.
Utility methods for server-side HTTP cookie handling.
A
HttpField that holds an HttpHeader.SET_COOKIE as a
HttpCookie instance, delaying any value generation until
HttpCookieUtils.SetCookieHttpField.getValue() is called.A HttpStream is an abstraction that together with
MetaData.Request, represents the
flow of data from and to a single request and response cycle.Handler to adjust the idle timeout of requests while dispatched.
InetAddress Access Handler
A
Handler that helps recording the total latency of the requests executed by the wrapped handler.A local connector, mostly for testing purposes.
A monitor for low resources, low resources can be detected by:
ThreadPool.isLowOnThreads() if Connector.getExecutor() is
an instance of ThreadPool and LowResourceMonitor.setMonitorThreads(boolean) is true.
If LowResourceMonitor.setMaxMemory(long) is non zero then low resources is detected if the JVMs
Runtime instance has Runtime.totalMemory() minus Runtime.freeMemory()
greater than LowResourceMonitor.getMaxMemory()
Enable Jetty style JMX MBeans from within a Context
A server
Connector that allows clients to communicate via memory.A
Transport suitable to be used when using a MemoryConnector.A
ContextHandler with a child Handler
that redirects to a configurable URI.A listener that limits the number of network connections.
A
Connector for TCP/IP network connectorsReceives notifications of the
NetworkConnector.open()
and NetworkConnector.close() events.A specialized version of
ServerConnector that supports NetworkTrafficListeners.Deprecated.
Use
DetectorConnectionFactory with a SslConnectionFactory instead.A Handler that delegates to other handlers through a configured
PathMappings.ConnectionFactory for the PROXY Protocol.
Customizer that extracts the real local and remote address:port pairs from a
ProxyConnectionFactory
and sets them on the request with Attributes.setAttribute(String, Object).A quality of service
Handler that conditionally
limits the number of concurrent requests, to provide more predictable
end-user experience in case descendant Handlers have limited
capacity.An
ErrorHandler that can re-handle a request at an error page location.An
ReHandlingErrorHandler that uses a map of error codes to select a page.The representation of an HTTP request, for any protocol version (HTTP/1.1, HTTP/2, HTTP/3).
A
Request.Wrapper that separately provides the request Attributes.A minimal Authentication interface, primarily used for logging.
A handler for an HTTP request and response.
A marker
Exception that can be passed the Callback.failed(Throwable) of the Callback
passed in Request.Handler.handle(Request, Response, Callback), to cause request handling to be aborted.This interface will be detected by the
Request.ServeAs.wrap(Request, HttpURI) static method to wrap the request
changing its target to a given path.A wrapper for
Request instances.TODO
Writes the generated log string to a log sink
Writer which outputs pre-formatted request log strings to a file using
RolloverFileOutputStream.Resource Handler will serve static content and handle If-Modified-Since headers.
Utility class to create a ContextHandler containing a ResourceHandler.
Utility methods to generate a List of paths.
Resource service, used by DefaultServlet and ResourceHandler
A welcome target paired with how to process it.
How welcome targets should be processed.
The representation of an HTTP response, for any protocol version (HTTP/1.1, HTTP/2, HTTP/3).
Forces a redirect to the secure form of the resource before allowed to access the resource.
Customizer that extracts the attribute of an
SSLContext
and makes them available via Attributes.getAttribute(String)
using the names:
EndPoint.SslSessionData.ATTRIBUTE for EndPoint.SslSessionData
SecureRequestCustomizer.X509_ATTRIBUTE for the local certificate as a X509 instance
This
Connector implementation is the primary connector for the
Jetty server over TCP/IP.The interface to a generic session associated with a request.
An API wrapper of the core session.
Listener interface that if implemented by a value of an attribute of an enclosing
Context at start, will be
notified of session lifecycle events.Listener interface that if implemented by a session attribute value, will be notified of
session value events.
A
Handler that initiates a Shutdown of the Jetty Server it belongs to.Shutdown/Stop Monitor thread.
A
Handler that can limit the size of message bodies in requests and responses.Deprecated, for removal: This API element is subject to removal in a future version.
use
SizeLimitHandler instead.Request log writer using a Slf4jLog Logger
A Connection Lister for customization of SocketConnections.
A LifeCycle Listener that writes state changes to a file.
A troubleshooting
Handler.Wrapper that tracks whether
Handler/Request/Response asynchronous APIs
are properly used by applications.Listener of events emitted by
StateTrackingHandler.Checks that the wrapped handler can read/write at a minimal rate of N bytes per second.
An extension of
AllowedResourceAliasChecker which will allow symlinks alias to arbitrary
targets, so long as the symlink file itself is an allowed resource.Handler to limit the number of concurrent threads per remote IP address, for DOS protection.
This will approve an alias where the only difference is a trailing slash.
Inspired by nginx's
try_files functionality.Supports the implementation of HTTP
CONNECT tunnels.
Handler.Abstract