Package org.eclipse.jetty.server
package org.eclipse.jetty.server
Jetty Server : Core Server API
-
ClassDescriptionProvides the common handling for
ConnectionFactoryimplementations including:An abstract implementation ofConnectorthat provides aConnectionFactorymechanism for creatingConnectioninstances for various protocols (HTTP, SSL, etc).Deprecated.An abstract Network Connector.A Listener that limits the rate at which new connections are acceptedDeprecated.useCustomRequestLoggiven format stringCustomRequestLog.EXTENDED_NCSA_FORMATwith anAsyncRequestLogWriterAn 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 createConnectioninstances forConnectors.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.AConnectoraccept 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.useConnectionStatisticsinstead.Cookie parserA flexible RequestLog, which produces log strings in a customizable format.A Context Listener that produces additional debug.AConnectionFactorycombining multipleConnectionFactory.Detectinginstances 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 theHostheader (for example, HTTP 1.0 requests).HttpChannel represents a single endpoint for HTTP semantic processing.Listener forHttpChannelevents.Deprecated.AHttpChannel.Listenerthat holds a collection of otherHttpChannel.Listenerinstances 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.AConnectionthat handles the HTTP protocol.A Connection Factory for HTTP Connections.AnHttpInput.Interceptorthat chains two otherHttpInput.Interceptors 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)HttpOutputimplementsServletOutputStreamas 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 ofThreadPoolandLowResourceMonitor.setMonitorThreads(boolean)is true. IfLowResourceMonitor.setMaxMemory(long)is non zero then low resources is detected if the JVMsRuntimeinstance 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-dataDeprecated.useCustomRequestLoggiven format stringCustomRequestLog.EXTENDED_NCSA_FORMATwith aRequestLogWriterAConnectorfor TCP/IP network connectorsA specialized version ofServerConnectorthat supportsNetworkTrafficListeners.Deprecated.UseDetectorConnectionFactorywith aSslConnectionFactoryinstead.ConnectionFactory for the PROXY Protocol.Customizer that extracts the real local and remote address:port pairs from aProxyConnectionFactoryand 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.ARequestLogcan be attached to aRequestLogHandlerto 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 ResourceHandlerResponseprovides 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 anSSLContextand 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.ThisConnectorimplementation 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.useCustomRequestLoggiven format stringCustomRequestLog.EXTENDED_NCSA_FORMATwith anSlf4jRequestLogWriterRequest 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.
CustomRequestLoggiven format stringCustomRequestLog.EXTENDED_NCSA_FORMATwith aRequestLog.Writer