Package org.eclipse.jetty.server
package org.eclipse.jetty.server
Jetty Server : Core Server API
-
ClassDescriptionProvides the common handling for
ConnectionFactory
implementations.An abstract implementation ofConnector
that provides aConnectionFactory
mechanism for creatingConnection
instances for various protocols (HTTP, SSL, etc).AnAbstractConnection
that also implementsConnectionMetaData
with fixed local and remote addresses.An abstract Network Connector.A Listener that limits the rate at which new connections are acceptedInterface to check aliases.This will approve any alias to anything inside of theContextHandler
s resource base which is not protected by a protected target as defined by theContextHandler
protected targets at start.An asynchronously writing RequestLogWriterCommon components made available via aRequest
.A Factory to createConnection
instances forConnector
s.A ConnectionFactory that can configure the connector.Connections created by this factory MUST implementConnection.UpgradeTo
.The possible outcomes of theConnectionFactory.Detecting.detect(ByteBuffer)
method.A Listener that limits the number of Connections.AConnector
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 anRequest
.Cookie parserA flexible RequestLog, which produces log strings in a customizable format.Record holding extra detail for loggingInterface that can be implemented by ContextHandlers within Environments to allow configuration to be passed from the DeploymentManager without dependencies on the Deployment module itself.AConnectionFactory
combining multipleConnectionFactory.Detecting
instances that will upgrade to the first one recognizing the bytes in the buffer.ACompletableFuture
that is completed once aapplication/x-www-form-urlencoded
content has been parsed asynchronously from theContent.Source
.Customize Requests for Proxy Forwarding.Ordered Source Enum.A Jetty component that handles HTTP requests, of any version (HTTP/1.1, HTTP/2 or HTTP/3).An abstract implementation ofHandler
that is aContainerLifeCycle
.An abstractHandler
with aInvocable.InvocationType.NON_BLOCKING
invocation type.AHandler.Abstract
that implementsHandler.Container
.AHandler.Container
that can contain multiple otherHandler
s.AHandler
that contains one or more otherHandler
s.AHandler.Container
that contains an ordered list of childrenHandler
s whoseRequest.Handler.handle(Request, Response, Callback)
method is invoked in sequence on each child until a child returnstrue
.AHandler.Container
that can contain one single otherHandler
.An implementation ofHandler.Singleton
, which is aHandler.Container
that wraps one single otherHandler
.Deprecated.Display an optional Warning Message if the {jetty.home} and {jetty.base} are the same directory.Adds a missingHost
header (for example, HTTP 1.0 or 2.0 requests).Represents the state of an HTTP request/response cycle.The factory that creates default implementations ofHttpChannel
.A factory forHttpChannel
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.AHttpField
that holds anHttpHeader.SET_COOKIE
as aHttpCookie
instance, delaying any value generation untilHttpCookieUtils.SetCookieHttpField.getValue()
is called.A HttpStream is an abstraction that together withMetaData.Request
, represents the flow of data from and to a single request and response cycle.A local connector, mostly for testing purposes.A monitor for low resources, low resources can be detected by:ThreadPool.isLowOnThreads()
ifConnector.getExecutor()
is an instance ofThreadPool
andLowResourceMonitor.setMonitorThreads(boolean)
is true. IfLowResourceMonitor.setMaxMemory(long)
is non zero then low resources is detected if the JVMsRuntime
instance hasRuntime.totalMemory()
minusRuntime.freeMemory()
greater thanLowResourceMonitor.getMaxMemory()
A serverConnector
that allows clients to communicate via memory.ATransport
suitable to be used when using aMemoryConnector
.AConnector
for TCP/IP network connectorsReceives notifications of theNetworkConnector.open()
andNetworkConnector.close()
events.A specialized version ofServerConnector
that supportsNetworkTrafficListener
s.Deprecated.UseDetectorConnectionFactory
with aSslConnectionFactory
instead.ConnectionFactory for the PROXY Protocol.Customizer that extracts the real local and remote address:port pairs from aProxyConnectionFactory
and sets them on the request withAttributes.setAttribute(String, Object)
.The representation of an HTTP request, for any protocol version (HTTP/1.1, HTTP/2, HTTP/3).ARequest.Wrapper
that separately provides the requestAttributes
.A minimal Authentication interface, primarily used for logging.A handler for an HTTP request and response.A markerException
that can be passed theCallback.failed(Throwable)
of theCallback
passed inRequest.Handler.handle(Request, Response, Callback)
, to cause request handling to be aborted.This interface will be detected by theRequest.ServeAs.wrap(Request, HttpURI)
static method to wrap the request changing its target to a given path.A wrapper forRequest
instances.TODOWrites the generated log string to a log sinkWriter which outputs pre-formatted request log strings to a file usingRolloverFileOutputStream
.Utility methods to generate a List of paths.Resource service, used by DefaultServlet and ResourceHandlerA 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).Customizer that extracts the attribute of anSSLContext
and makes them available viaAttributes.getAttribute(String)
using the names:EndPoint.SslSessionData.ATTRIBUTE
forEndPoint.SslSessionData
SecureRequestCustomizer.X509_ATTRIBUTE
for the local certificate as aX509
instanceThisConnector
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 enclosingContext
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.Shutdown/Stop Monitor thread.AHandler
that can limit the size of message bodies in requests and responses.Request log writer using a Slf4jLog LoggerA Connection Lister for customization of SocketConnections.A LifeCycle Listener that writes state changes to a file.An extension ofAllowedResourceAliasChecker
which will allow symlinks alias to arbitrary targets, so long as the symlink file itself is an allowed resource.This will approve an alias where the only difference is a trailing slash.Supports the implementation of HTTPCONNECT
tunnels.
Handler.Container