Package org.eclipse.jetty.server
package org.eclipse.jetty.server
Jetty Server : Core Server API
-
ClassDescriptionProvides the common handling for
ConnectionFactory
implementations including:An abstract implementation ofConnector
that provides aConnectionFactory
mechanism for creatingConnection
instances for various protocols (HTTP, SSL, etc).Deprecated.An abstract Network Connector.A Listener that limits the rate at which new connections are acceptedDeprecated.useCustomRequestLog
given format stringCustomRequestLog.EXTENDED_NCSA_FORMAT
with anAsyncRequestLogWriter
An asynchronously writing RequestLogWriterThe Authentication state of a request.An Authentication Challenge has been sent.A deferred authentication with methods to progress the authentication process.An Authentication Failure has been sent.An authentication that is capable of performing a programmatic login operation.An authentication that is capable of performing a programmatic logout operation.After a logout, the authentication reverts to a state where it is possible to programmatically log in again.Authentication Response sent state.A successful Authentication with User information.A wrapped authentication with methods provide the wrapped request/response for use by the applicationA Factory to createConnection
instances forConnector
s.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.Deprecated.useConnectionStatistics
instead.Cookie parserA flexible RequestLog, which produces log strings in a customizable format.A Context Listener that produces additional debug.AConnectionFactory
combining multipleConnectionFactory.Detecting
instances that will upgrade to the first one recognizing the bytes in the buffer.Customize Requests for Proxy Forwarding.Ordered Source Enum.A Jetty Server Handler.A Handler that contains other Handlers.Display an optional Warning Message if the {jetty.home} and {jetty.base} are the same directory.Customizes requests that lack theHost
header (for example, HTTP 1.0 requests).HttpChannel represents a single endpoint for HTTP semantic processing.Listener forHttpChannel
events.Deprecated.AHttpChannel.Listener
that holds a collection of otherHttpChannel.Listener
instances that are efficiently invoked without iteration.An HttpChannel customized to be transported over the HTTP/1 protocolImplementation of AsyncContext interface that holds the state of request-response cycle.The actions to take as the channel moves from state to state.HTTP Configuration.An interface that allows a request object to be customized for a particular HTTP connector configuration.AConnection
that handles the HTTP protocol.A Connection Factory for HTTP Connections.AnHttpInput.Interceptor
that chains two otherHttpInput.Interceptor
s together.An interceptor for HTTP Request input.A Sentinel Content, which has zero length content but indicates some other event in the input stream (eg EOF)HttpOutput
implementsServletOutputStream
as required by the Servlet specification.The API State which combines with the output State:The HttpOutput.Interceptor is a single intercept point for all output written to the HttpOutput: via writer; via output stream; asynchronously; or blocking.The output stateAbstraction of the outbound HTTP transport.Byte range inclusive of end points.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()
IfLowResourceMonitor.setMaxConnections(int)
is non zero then low resources is detected if the total number of connections exceedsLowResourceMonitor.getMaxConnections()
.The compliance level for parsingmultiPart/form-data
Deprecated.useCustomRequestLog
given format stringCustomRequestLog.EXTENDED_NCSA_FORMAT
with aRequestLogWriter
AConnector
for TCP/IP network connectorsA 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 withServletRequest.setAttribute(String, Object)
.Build a request to be pushed.A ServletException that is logged less verbosely than a normal ServletException.Jetty Request.ARequestLog
can be attached to aRequestLogHandler
to enable logging of requests/responses.Writes the generated log string to a log sinkWriter which outputs pre-formatted request log strings to a file usingRolloverFileOutputStream
.An HttpContent.Factory for transient content (not cached).Abstract resource service, used by DefaultServlet and ResourceHandlerResponse
provides the implementation forHttpServletResponse
.Specialized PrintWriter for servlet ResponsesAlias checking for working with FileSystems that normalize access to the File System.Customizer that extracts the attribute from anSSLContext
and sets them on the request withServletRequest.setAttribute(String, Object)
according to Servlet Specification Requirements.Simple bundle of data that is cached in the SSLSession.Jetty HTTP Servlet Server.Deprecated.ThisConnector
implementation is the primary connector for the Jetty server over TCP/IP.ServletRequestHttpWrapper Class to tunnel a ServletRequest via an HttpServletRequestServletResponseHttpWrapper Wrapper to tunnel a ServletResponse via an HttpServletResponseSession ID Manager.Shutdown/Stop Monitor thread.Deprecated.useCustomRequestLog
given format stringCustomRequestLog.EXTENDED_NCSA_FORMAT
with anSlf4jRequestLogWriter
Request log writer using a Slf4jLog LoggerA Connection Lister for customization of SocketConnections.User object that encapsulates user identity and operations such as run-as-role actions, checking isUserInRole and getUserPrincipal.A UserIdentity Scope.OutputWriter.
CustomRequestLog
given format stringCustomRequestLog.EXTENDED_NCSA_FORMAT
with aRequestLog.Writer