Package org.eclipse.jetty.server
package org.eclipse.jetty.server
Jetty Server : Core Server API
-
ClassDescriptionProvides the common handling for
ConnectionFactoryimplementations.An abstract implementation ofConnectorthat provides aConnectionFactorymechanism for creatingConnectioninstances for various protocols (HTTP, SSL, etc).AnAbstractConnectionthat also implementsConnectionMetaDatawith 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 theContextHandlers resource base which is not protected by a protected target as defined by theContextHandlerprotected targets at start.An asynchronously writing RequestLogWriterCommon components made available via aRequest.A Factory to createConnectioninstances forConnectors.A ConnectionFactory that can configure the connector.Connections created by this factory MUST implementConnection.UpgradeTo.The possible outcomes of theConnectionFactory.Detecting.detect(ByteBuffer)method.Deprecated, for removal: This API element is subject to removal in a future version.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.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.AConnectionFactorycombining multipleConnectionFactory.Detectinginstances that will upgrade to the first one recognizing the bytes in the buffer.ACompletableFuturethat is completed once aapplication/x-www-form-urlencodedcontent 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 ofHandlerthat is aContainerLifeCycle.An abstractHandlerwith aInvocable.InvocationType.NON_BLOCKINGinvocation type.AHandler.Abstractthat implementsHandler.Container.AHandler.Containerthat can contain multiple otherHandlers.AHandlerthat contains one or more otherHandlers.AHandler.Containerthat contains an ordered list of childrenHandlers whoseRequest.Handler.handle(Request, Response, Callback)method is invoked in sequence on each child until a child returnstrue.AHandler.Containerthat can contain one single otherHandler.An implementation ofHandler.Singleton, which is aHandler.Containerthat wraps one single otherHandler.Deprecated.Display an optional Warning Message if the {jetty.home} and {jetty.base} are the same directory.Adds a missingHostheader (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 forHttpChannelinstances.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.AHttpFieldthat holds anHttpHeader.SET_COOKIEas aHttpCookieinstance, 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 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()A serverConnectorthat allows clients to communicate via memory.ATransportsuitable to be used when using aMemoryConnector.A listener that limits the number of network connections.AConnectorfor TCP/IP network connectorsReceives notifications of theNetworkConnector.open()andNetworkConnector.close()events.A 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 withAttributes.setAttribute(String, Object).The representation of an HTTP request, for any protocol version (HTTP/1.1, HTTP/2, HTTP/3).ARequest.Wrapperthat separately provides the requestAttributes.A minimal Authentication interface, primarily used for logging.A handler for an HTTP request and response.A markerExceptionthat can be passed theCallback.failed(Throwable)of theCallbackpassed 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 forRequestinstances.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 anSSLContextand makes them available viaAttributes.getAttribute(String)using the names:EndPoint.SslSessionData.ATTRIBUTEforEndPoint.SslSessionDataSecureRequestCustomizer.X509_ATTRIBUTEfor the local certificate as aX509instanceThisConnectorimplementation 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 enclosingContextat 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.Deprecated, for removal: This API element is subject to removal in a future version.useSizeLimitHandlerinstead.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 ofAllowedResourceAliasCheckerwhich 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 HTTPCONNECTtunnels.
NetworkConnectionLimitinstead