Uses of Interface
org.eclipse.jetty.server.Request
Package
Description
Jetty Jaspi : Java Authentication SPI
Jetty Server : Modular Servlet Integration
Jetty Rewrite : Rewrite Handler and Rules for Jetty
Jetty Security : Modular Support for Security in Jetty
Jetty Security : Authenticators and Callbacks
Jetty Jaas : Support for Jaas
Jetty Jaas : Jaas Callbacks
Jetty Server : Core Server API
Jetty Server : Core Handler API
Jetty GZIP Handler
Jetty Server : Session Management Implementations
-
Uses of Request in org.eclipse.jetty.ee10.security.jaspi
Modifier and TypeMethodDescriptionboolean
JaspiAuthenticator.secureResponse
(Request request, Response response, Callback callback, boolean mandatory, AuthenticationState.Succeeded validatedSucceeded) JaspiAuthenticator.validateRequest
(Request request, Response response, Callback callback) ModifierConstructorDescriptionJaspiMessageInfo
(Request request, Response response, Callback callback) -
Uses of Request in org.eclipse.jetty.ee10.servlet
Modifier and TypeClassDescriptionclass
A core request wrapper that carries the servlet related request state, which may be used directly by the associatedServletApiRequest
.class
Wrap aServletRequest
as a coreRequest
.Modifier and TypeMethodDescriptionServletApiRequest.getRequest()
ServletChannel.getRequest()
default Request
ServletContextHandler.ServletRequestInfo.getRequest()
ServletCoreResponse.getRequest()
static Request
ServletCoreRequest.wrap
(jakarta.servlet.http.HttpServletRequest httpServletRequest) Modifier and TypeMethodDescriptionvoid
Associate this channel with possibly wrapped values forServletChannel.getRequest()
,ServletChannel.getResponse()
andServletChannel.getCallback()
.protected void
protected Writer
ErrorHandler.getAcceptableWriter
(Request baseRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Deprecated.SessionHandler.getManagedSession
(Request request) boolean
boolean
boolean
boolean
protected boolean
EagerFormHandler.handleFormFields
(Request request, Response response, Callback callback) protected boolean
EagerFormHandler.handleMultiPartFormData
(Request request, String contentType, Response response, Callback callback) protected ServletContextRequest
ServletContextHandler.newServletContextRequest
(ServletChannel servletChannel, Request request, Response response, String decodedPathInContext, MatchedResource<ServletHandler.MappedServlet> matchedResource) protected void
ServletHandler.notFound
(Request baseRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected void
ServletContextHandler.notifyEnterScope
(Request request) protected void
ServletContextHandler.notifyExitScope
(Request request) protected void
ServletContextHandler.requestDestroyed
(Request baseRequest, jakarta.servlet.http.HttpServletRequest request) protected void
ServletContextHandler.requestInitialized
(Request baseRequest, jakarta.servlet.http.HttpServletRequest request) ServletCoreResponse.wrap
(Request coreRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, boolean included) protected ContextRequest
ServletContextHandler.wrapRequest
(Request request, Response response) ModifierConstructorDescriptionServletChannel
(ServletContextHandler servletContextHandler, Request request) protected
ServletContextRequest
(ServletContextHandler.ServletContextApi servletContextApi, ServletChannel servletChannel, Request request, Response response, String decodedPathInContext, MatchedResource<ServletHandler.MappedServlet> matchedResource, SessionManager sessionManager) -
Uses of Request in org.eclipse.jetty.ee10.servlet.security
Modifier and TypeMethodDescriptionprotected Constraint
ConstraintSecurityHandler.getConstraint
(String pathInContext, Request request) -
Uses of Request in org.eclipse.jetty.fcgi.proxy
Modifier and TypeMethodDescriptionprotected void
FastCGIProxyHandler.sendProxyToServerRequest
(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) ModifierConstructorDescriptionFastCGIProxyHandler
(Function<Request, HttpURI> httpURIRewriter, String scriptRoot) Creates a new instance with the givenHttpURI
rewriter function. -
Uses of Request in org.eclipse.jetty.http.spi
ModifierConstructorDescriptionJettyHttpExchange
(HttpContext jaxWsContext, Request req, Response resp) JettyHttpsExchange
(HttpContext jaxWsContext, Request req, Response resp) -
Uses of Request in org.eclipse.jetty.http2.server
Modifier and TypeMethodDescriptionAuthorityCustomizer.customize
(Request request, HttpFields.Mutable responseHeaders) Modifier and TypeMethodDescriptionAuthorityCustomizer.customize
(Request request, HttpFields.Mutable responseHeaders) -
Uses of Request in org.eclipse.jetty.proxy
Modifier and TypeMethodDescriptionprotected void
ProxyHandler.addForwardedHeader
(Request clientToProxyRequest, Request proxyToServerRequest) protected void
ProxyHandler.addProxyHeaders
(Request clientToProxyRequest, Request proxyToServerRequest) protected void
ProxyHandler.addViaHeader
(Request clientToProxyRequest, Request proxyToServerRequest) protected void
ProxyHandler.copyRequestHeaders
(Request clientToProxyRequest, Request proxyToServerRequest) boolean
ProxyHandler.handle
(Request clientToProxyRequest, Response proxyToClientResponse, Callback proxyToClientCallback) protected Request
ProxyHandler.newProxyToServerRequest
(Request clientToProxyRequest, HttpURI newHttpURI) protected Request.Content
ProxyHandler.newProxyToServerRequestContent
(Request clientToProxyRequest, Response proxyToClientResponse, Request proxyToServerRequest) protected Response.CompleteListener
ProxyHandler.newServerToProxyResponseListener
(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) protected void
ProxyHandler.onProxyToClientResponseComplete
(Request clientToProxyRequest, Request proxyToServerRequest, Response serverToProxyResponse, Response proxyToClientResponse, Callback proxyToClientCallback) protected void
ProxyHandler.onProxyToClientResponseFailure
(Request clientToProxyRequest, Request proxyToServerRequest, Response serverToProxyResponse, Response proxyToClientResponse, Callback proxyToClientCallback, Throwable failure) protected Runnable
ProxyHandler.onServerToProxyResponse100Continue
(Request clientToProxyRequest, Request proxyToServerRequest) protected void
ProxyHandler.onServerToProxyResponse102Processing
(Request clientToProxyRequest, Request proxyToServerRequest, HttpFields serverToProxyResponseHeaders, Response proxyToClientResponse) protected void
ProxyHandler.onServerToProxyResponse103EarlyHints
(Request clientToProxyRequest, Request proxyToServerRequest, HttpFields serverToProxyResponseHeaders, Response proxyToClientResponse) protected void
ProxyHandler.onServerToProxyResponseFailure
(Request clientToProxyRequest, Request proxyToServerRequest, Response serverToProxyResponse, Response proxyToClientResponse, Callback proxyToClientCallback, Throwable failure) protected static String
protected HttpURI
ProxyHandler.Forward.rewriteHttpURI
(Request clientToProxyRequest) Rewrites the client-to-proxy request URI to the proxy-to-server request URI.protected HttpURI
ProxyHandler.Reverse.rewriteHttpURI
(Request clientToProxyRequest) Rewrites the client-to-proxy request URI to the proxy-to-server request URI.protected abstract HttpURI
ProxyHandler.rewriteHttpURI
(Request clientToProxyRequest) Rewrites the client-to-proxy request URI to the proxy-to-server request URI.protected void
ProxyHandler.sendProxyToServerRequest
(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) ModifierConstructorDescriptionProxyRequestContent
(Request clientToProxyRequest) ProxyResponseListener
(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) -
Uses of Request in org.eclipse.jetty.rewrite
Modifier and TypeMethodDescriptionRewriteCustomizer.customize
(Request request, HttpFields.Mutable responseHeaders) Modifier and TypeMethodDescriptionRewriteCustomizer.customize
(Request request, HttpFields.Mutable responseHeaders) -
Uses of Request in org.eclipse.jetty.rewrite.handler
Modifier and TypeClassDescriptionstatic class
ARequest.Wrapper
used to chain a sequence ofRule
s together.static class
Modifier and TypeMethodDescriptionboolean
-
Uses of Request in org.eclipse.jetty.security
Modifier and TypeMethodDescriptiondefault Request
Authenticator.prepareRequest
(Request request, AuthenticationState authenticationState) Called afterAuthenticator.validateRequest(Request, Response, Callback)
and before callingRequest.Handler.handle(Request, Response, Callback)
of the nested handler.Modifier and TypeMethodDescriptionAuthenticationState.authenticate
(Request request) Get successful authentication for a request.AuthenticationState.authenticate
(Request request, Response response, Callback callback) Get successful authentication for a request.AuthenticationState.Deferred.authenticate
(Request request) Authenticate the request using any credentials already associated with the request.AuthenticationState.Deferred.authenticate
(Request request, Response response, Callback callback) Authenticate the request using any credentials already associated with the request or challenging if necessary.static AuthenticationState
AuthenticationState.getAuthenticationState
(Request request) Get the authentication state of a requestprotected abstract Constraint
SecurityHandler.getConstraint
(String pathInContext, Request request) protected Constraint
SecurityHandler.PathMapped.getConstraint
(String pathInContext, Request request) static Principal
AuthenticationState.getUserPrincipal
(Request request) Get theUserPrincipal
of an authenticated request.boolean
AbstractLoginService.login
(String username, Object credentials, Request request, Function<Boolean, Session> getOrCreateSession) AuthenticationState.Deferred.login
(String username, Object password, Request request, Response response) Authenticate the request with the passed credentialsAttempt to login a request using the passed credentials.EmptyLoginService.login
(String username, Object credentials, Request request, Function<Boolean, Session> getOrCreateSession) LoginService.login
(String username, Object credentials, Request request, Function<Boolean, Session> getOrCreateSession) Login a user.SPNEGOLoginService.login
(String username, Object credentials, Request request, Function<Boolean, Session> getOrCreateSession) void
Logout the authenticated user.static boolean
void
Remove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.default Request
Authenticator.prepareRequest
(Request request, AuthenticationState authenticationState) Called afterAuthenticator.validateRequest(Request, Response, Callback)
and before callingRequest.Handler.handle(Request, Response, Callback)
of the nested handler.protected void
SecurityHandler.redirectToSecure
(Request request, Response response, Callback callback) static void
AuthenticationState.setAuthenticationState
(Request request, AuthenticationState authenticationState) Set the authentication state of a request.Authenticator.NoOp.validateRequest
(Request request, Response response, Callback callback) Authenticator.validateRequest
(Request request, Response response, Callback callback) Validate a request -
Uses of Request in org.eclipse.jetty.security.authentication
Modifier and TypeMethodDescriptionFormAuthenticator.prepareRequest
(Request request, AuthenticationState authenticationState) Modifier and TypeMethodDescriptionLoginAuthenticator.LoggedOutAuthentication.authenticate
(Request request) LoginAuthenticator.LoggedOutAuthentication.authenticate
(Request request, Response response, Callback callback) protected String
protected Fields
FormAuthenticator.getParameters
(Request request) LoginAuthenticator.LoggedOutAuthentication.login
(String username, Object password, Request request, Response response) If the UserIdentity returned fromLoginService.login(String, Object, Request, Function)
is not null, it is assumed that the user is fully authenticated and we need to change the session id to prevent session fixation vulnerability.Only renew the session id if the user has been fully authenticated, don't renew the session for any of the intermediate request/response handshakes.void
void
void
void
FormAuthenticator.prepareRequest
(Request request, AuthenticationState authenticationState) protected void
LoginAuthenticator.updateSession
(Request httpRequest, Response httpResponse) Update the session on authentication.BasicAuthenticator.validateRequest
(Request req, Response res, Callback callback) DigestAuthenticator.validateRequest
(Request req, Response res, Callback callback) FormAuthenticator.validateRequest
(Request request, Response response, Callback callback) SPNEGOAuthenticator.validateRequest
(Request req, Response res, Callback callback) SslClientCertAuthenticator.validateRequest
(Request req, Response res, Callback callback) -
Uses of Request in org.eclipse.jetty.security.internal
-
Uses of Request in org.eclipse.jetty.security.jaas
-
Uses of Request in org.eclipse.jetty.security.jaas.callback
Modifier and TypeMethodDescriptionvoid
DefaultCallbackHandler.setRequest
(Request request) void
RequestCallback.setRequest
(Request request) -
Uses of Request in org.eclipse.jetty.security.openid
Modifier and TypeMethodDescriptionOpenIdAuthenticator.prepareRequest
(Request request, AuthenticationState authenticationState) Modifier and TypeMethodDescriptionprotected String
OpenIdAuthenticator.getChallengeUri
(Request request) protected Fields
OpenIdAuthenticator.getParameters
(Request request) OpenIdLoginService.login
(String identifier, Object credentials, Request request, Function<Boolean, Session> getOrCreateSession) void
OpenIdAuthenticator.prepareRequest
(Request request, AuthenticationState authenticationState) OpenIdAuthenticator.validateRequest
(Request request, Response response, Callback cb) -
Uses of Request in org.eclipse.jetty.server
Modifier and TypeInterfaceDescriptionstatic interface
This interface will be detected by theRequest.ServeAs.wrap(Request, HttpURI)
static method to wrap the request changing its target to a given path.Modifier and TypeClassDescriptionstatic class
ARequest.Wrapper
that separately provides the requestAttributes
.static class
A wrapper forRequest
instances.protected static class
protected class
Modifier and TypeMethodDescriptionstatic Request
Request.asReadOnly
(Request request) Returns a copy of the request that throwsUnsupportedOperationException
from all mutative methods.ForwardedRequestCustomizer.customize
(Request request, HttpFields.Mutable responseHeaders) HostHeaderCustomizer.customize
(Request request, HttpFields.Mutable responseHeaders) HttpConfiguration.Customizer.customize
(Request request, HttpFields.Mutable responseHeaders) ProxyCustomizer.customize
(Request request, HttpFields.Mutable responseHeaders) SecureRequestCustomizer.customize
(Request request, HttpFields.Mutable responseHeaders) HttpChannel.getRequest()
Returns theRequest
object, if available.Response.getRequest()
Response.Wrapper.getRequest()
Request.Wrapper.getWrapped()
protected Request
SecureRequestCustomizer.newSecureRequest
(Request request, EndPoint.SslSessionData sslSessionData) static Request
Return a request with itsHttpURI
changed to the supplied target.static Request
Wraps a request but changes the uri so that it can be served to a different target.Modifier and TypeMethodDescriptionstatic void
Request.addCompletionListener
(Request request, Consumer<Throwable> listener) Adds a completion listener that is an optimized equivalent to overriding theCallback.succeeded()
andCallback.failed(Throwable)
methods of aHttpStream.Wrapper
created by a call toaddHttpStreamWrapper(Function)
.static <T> T
static OutputStream
Response.asBufferedOutputStream
(Request request, Response response) Wraps aResponse
as aOutputStream
that performs buffering.static Content.Sink
Response.asBufferedSink
(Request request, Response response) Wraps aResponse
as aContent.Sink
that performs buffering.static InputStream
Request.asInputStream
(Request request) static Request
Request.asReadOnly
(Request request) Returns a copy of the request that throwsUnsupportedOperationException
from all mutative methods.protected void
SecureRequestCustomizer.checkSni
(Request request, SSLSession session) ForwardedRequestCustomizer.customize
(Request request, HttpFields.Mutable responseHeaders) HostHeaderCustomizer.customize
(Request request, HttpFields.Mutable responseHeaders) HttpConfiguration.Customizer.customize
(Request request, HttpFields.Mutable responseHeaders) ProxyCustomizer.customize
(Request request, HttpFields.Mutable responseHeaders) SecureRequestCustomizer.customize
(Request request, HttpFields.Mutable responseHeaders) void
ResourceService.doGet
(Request request, Response response, Callback callback, HttpContent content) static void
ResponseUtils.ensureConsumeAvailableOrNotPersistent
(Request request, Response response) static void
ResponseUtils.ensureNotPersistent
(Request request, Response response) static Fields
Request.extractQueryParameters
(Request request) static Fields
Request.extractQueryParameters
(Request request, Charset charset) static CompletableFuture<Fields>
Deprecated, for removal: This API element is subject to removal in a future version.static CompletableFuture<Fields>
Deprecated, for removal: This API element is subject to removal in a future version.static CompletableFuture<Fields>
Deprecated, for removal: This API element is subject to removal in a future version.static CompletableFuture<Fields>
Deprecated, for removal: This API element is subject to removal in a future version.static HttpChannel
static CompletableFuture<Fields>
Deprecated, for removal: This API element is subject to removal in a future version.static <T,
R> R static <C> C[]
CookieCache.getApiCookies
(Request request, Class<C> cookieClass, Function<HttpCookie, C> convertor) Get the API specific cookies for a request.static Request.AuthenticationState
Request.getAuthenticationState
(Request request) static Charset
Request.getCharset
(Request request) Get aCharset
from the requestHttpHeader.CONTENT_TYPE
, if any.ResourceService.getContent
(String path, Request request) static long
Request.getContentBytesRead
(Request request) static String
Request.getContextPath
(Request request) Get the context path of thisRequest
.static List<HttpCookie>
CookieCache.getCookies
(Request request) Get the core HttpCookies for a request.static List<HttpCookie>
Request.getCookies
(Request request) default String
Context.getCrossContextDispatchType
(Request request) Get any cross context dispatch typestatic Fields
Get the Fields from a request.static Fields
Get the Fields from a request.static Charset
FormFields.getFormEncodedCharset
(Request request) static String
Request.getLocalAddr
(Request request) Request.getLocales
(Request request) static int
Request.getLocalPort
(Request request) static MultiPartConfig.Builder
Request.getMultiPartConfig
(Request request, Path location) Get aMultiPartConfig.Builder
given aRequest
and a location.static Fields
Request.getParameters
(Request request) static CompletableFuture<Fields>
Request.getParametersAsync
(Request request) static String
Request.getPathInContext
(Request request) Returns the canonically encoded path of the URI, scoped to the current context.static String
Request.getRemoteAddr
(Request request) static int
Request.getRemotePort
(Request request) static String
Request.getServerName
(Request request) Get the logical name the request was sent to, which may be from the authority of the request; the configured server authority; the actual network name of the server;static int
Request.getServerPort
(Request request) Get the logical port a request was received on, which may be from the authority of the request; the configured server authority; the default port for the scheme; or the actual network port.static long
Request.getTimeStamp
(Request request) Get the millisecond timestamp at which the request was created, obtained withSystem.currentTimeMillis()
.ResourceService.WelcomeFactory.getWelcomeTarget
(HttpContent content, Request request) Finds a matching welcome target for the request.boolean
boolean
boolean
Invoked to handle the passed HTTP request and response.boolean
boolean
protected void
ResourceService.handleWelcomeAction
(Request request, Response response, Callback callback, ResourceService.WelcomeAction welcomeAction) default boolean
Context.isCrossContextDispatch
(Request request) Check cross context dispatch statusvoid
void
void
static HttpURI
Request.newHttpURIFrom
(Request request, String newEncodedPathInContext) Creates a newHttpURI
from the given Request's HttpURI and the given path in context.protected Request
SecureRequestCustomizer.newSecureRequest
(Request request, EndPoint.SslSessionData sslSessionData) static void
FormFields.onFields
(Request request, Charset charset, Promise.Invocable<Fields> promise) Asynchronously read and parse FormFields from aRequest
.static void
FormFields.onFields
(Request request, Promise.Invocable<Fields> promise) Asynchronously read and parse FormFields from aRequest
.protected boolean
ResourceService.passConditionalHeaders
(Request request, Response response, HttpContent content, Callback callback) protected void
ResourceService.redirectWelcome
(Request request, Response response, Callback callback, String welcomeTarget) Redirects to the given welcome target.protected void
ResourceService.rehandleWelcome
(Request request, Response response, Callback callback, String welcomeTarget) Rehandles the given welcome target.void
Renew the identity of the session.void
Runs the given task in the current thread scoped to this Context and the given Request.protected void
ResourceService.sendRedirect
(Request request, Response response, Callback callback, String target) static void
Response.sendRedirect
(Request request, Response response, Callback callback, int code, String location, boolean consumeAvailable) Sends a302
HTTP redirect status code to the given location.static void
Response.sendRedirect
(Request request, Response response, Callback callback, String location) Sends a HTTP redirect status code to the given location, without consuming the available request content.static void
Response.sendRedirect
(Request request, Response response, Callback callback, String location, boolean consumeAvailable) Sends HTTP redirect status code to the given location, without consuming the available request content.protected void
ResourceService.sendWelcome
(HttpContent content, String pathInContext, boolean endsWithSlash, Request request, Response response, Callback callback) static Request
Return a request with itsHttpURI
changed to the supplied target.protected void
ResourceService.serveWelcome
(Request request, Response response, Callback callback, String welcomeTarget) Serves the given welcome target.static void
FormFields.set
(Request request, CompletableFuture<Fields> fields) Deprecated, for removal: This API element is subject to removal in a future version.static void
Request.setAuthenticationState
(Request request, Request.AuthenticationState state) static void
Set aFields
or related failure for the requeststatic String
Request.toRedirectURI
(Request request, String location) Deprecated.static String
Response.toRedirectURI
(Request request, String location) Common point to generate a proper "Location" header for redirects.static Request
Wraps a request but changes the uri so that it can be served to a different target.static void
Response.writeError
(Request request, Response response, Callback callback, int status) Writes an error response with the given HTTP status code.static void
Response.writeError
(Request request, Response response, Callback callback, int status, String message) Writes an error response with the given HTTP status code, and the given message in the response content.static void
Response.writeError
(Request request, Response response, Callback callback, int status, String message, Throwable cause) Writes an error response with the given HTTP status code, and the given message in the response content.static void
Response.writeError
(Request request, Response response, Callback callback, Throwable cause) Writes an error response with HTTP status code500
.protected void
ResourceService.writeHttpContent
(Request request, Response response, Callback callback, HttpContent content) protected void
ResourceService.writeHttpError
(Request request, Response response, Callback callback, int status) protected void
ResourceService.writeHttpError
(Request request, Response response, Callback callback, int status, String msg, Throwable cause) protected void
ResourceService.writeHttpError
(Request request, Response response, Callback callback, Throwable cause) Modifier and TypeMethodDescriptionvoid
CustomRequestLog.setFilter
(BiPredicate<Request, Response> filter) This allows you to set a custom filter to decide whether to log a request or omit it from the request log.ModifierConstructorDescriptionAttributesWrapper
(Request wrapped, Attributes attributes) SecureRequest
(Request wrapped) protected
SecureRequestWithSslSessionData
(Request request, EndPoint.SslSessionData sslSessionData) -
Uses of Request in org.eclipse.jetty.server.handler
Modifier and TypeClassDescriptionclass
static class
protected class
Modifier and TypeMethodDescriptionConnectHandler.ConnectContext.getRequest()
protected Request
DelayedHandler.DelayedProcess.getRequest()
Modifier and TypeMethodDescriptionConditionalHandler.from
(String connectorName, String inetAddressPattern, String method, String pathSpec) Create aPredicate
overRequest
built from theand
of one or more of:ConditionalHandler.ConnectorPredicate
ConditionalHandler.InetAddressPatternPredicate
ConditionalHandler.MethodPredicate
ConditionalHandler.PathSpecPredicate
ConditionalHandler.from
(String connectorName, InetAddressPattern inetAddressPattern, String method, PathSpec pathSpec) Create aPredicate
overRequest
built from theand
of one or more of:TypeUtil.truePredicate()
ConditionalHandler.ConnectorPredicate
ConditionalHandler.InetAddressPatternPredicate
ConditionalHandler.MethodPredicate
ConditionalHandler.PathSpecPredicate
ConditionalHandler.PredicateSet.iterator()
Modifier and TypeMethodDescriptionvoid
void
ContextHandler.ScopedContext.call
(Invocable.Callable callable, Request request) boolean
ContextHandler.checkVirtualHost
(Request request) protected int
ErrorHandler.computeBufferSize
(Request request) protected void
ConnectHandler.connectToServer
(Request request, String host, int port, Promise<SocketChannel> promise) default void
ContextHandler.ContextScopeListener.enterScope
(Context context, Request request) protected ClassLoader
ContextHandler.enterScope
(Request contextRequest) void
default void
protected void
ContextHandler.exitScope
(Request request, Context lastContext, ClassLoader lastLoader) protected void
QoSHandler.failSuspended
(Request request, Response response, Callback callback, int status, Throwable failure) Fails the given suspended request/response with the given error code and failure.protected String
DebugHandler.findRequestName
(Request request) protected boolean
ErrorHandler.generateAcceptableResponse
(Request request, Response response, Callback callback, String contentType, List<Charset> charsets, int code, String message, Throwable cause) protected void
ErrorHandler.generateResponse
(Request request, Response response, int code, String message, Throwable cause, Callback callback) protected void
ReHandlingErrorHandler.generateResponse
(Request request, Response response, int code, String message, Throwable cause, Callback callback) static ContextHandler
ContextHandler.getContextHandler
(Request request) ContextHandler.ScopedContext.getCrossContextDispatchType
(Request request) protected int
QoSHandler.getPriority
(Request request) Returns the priority of the given suspended request, a value greater than or equal to0
.protected String
ReHandlingErrorHandler.ByHttpStatus.getReHandlePathInContext
(Request request, int code, Throwable cause) protected abstract String
ReHandlingErrorHandler.getReHandlePathInContext
(Request request, int code, Throwable cause) protected String
ThreadLimitHandler.getRemoteIP
(Request baseRequest) final boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
StateTrackingHandler.handle
(Request originalRequest, Response originalResponse, Callback originalCallback) boolean
StatisticsHandler.MinimumDataRateHandler.handle
(Request request, Response response, Callback callback) boolean
protected boolean
ConnectHandler.handleAuthentication
(Request request, Response response, String address) Handles the authentication before setting up the tunnel to the remote server.protected void
ConnectHandler.handleConnect
(Request request, Response response, Callback callback, String serverAddress) Handles a CONNECT request.protected void
ContextHandler.handleMovedPermanently
(Request request, Response response, Callback callback) protected void
ContextHandler.handleUnavailable
(Request request, Response response, Callback callback) boolean
ContextHandler.ScopedContext.isCrossContextDispatch
(Request request) protected DelayedHandler.DelayedProcess
DelayedHandler.newDelayedProcess
(boolean contentExpected, String contentType, MimeTypes.Type mimeType, Handler handler, Request request, Response response, Callback callback) protected boolean
ConditionalHandler.nextHandler
(Request request, Response response, Callback callback) Handle a request by invoking theConditionalHandler.handle(Request, Response, Callback)
method of thenext Handler
.protected void
ContextHandler.notifyEnterScope
(Request request) protected void
ContextHandler.notifyExitScope
(Request request) protected void
EventsHandler.onAfterHandling
(Request request, boolean handled, Throwable failure) Invoked after application handling (i.e.protected void
StatisticsHandler.onAfterHandling
(Request request, boolean handled, Throwable failure) protected void
EventsHandler.onBeforeHandling
(Request request) Invoked just before calling the server handler tree (i.e.protected void
StatisticsHandler.onBeforeHandling
(Request request) protected void
EventsHandler.onComplete
(Request request, int status, HttpFields headers, Throwable failure) Invoked when the request and response processing are complete, just before the request and response will be recycled (i.e.protected void
EventsHandler.onComplete
(Request request, Throwable failure) Deprecated.OverrideEventsHandler.onComplete(Request, int, HttpFields, Throwable)
instead.protected final void
LatencyRecordingHandler.onComplete
(Request request, int status, HttpFields headers, Throwable failure) protected void
StatisticsHandler.onComplete
(Request request, int status, HttpFields headers, Throwable failure) boolean
BufferedResponseHandler.onConditionsMet
(Request request, Response response, Callback callback) protected boolean
ConditionalHandler.DontHandle.onConditionsMet
(Request request, Response response, Callback callback) protected abstract boolean
ConditionalHandler.onConditionsMet
(Request request, Response response, Callback callback) Handle a request that has met the conditions.protected boolean
ConditionalHandler.Reject.onConditionsMet
(Request request, Response response, Callback callback) protected boolean
ConditionalHandler.SkipNext.onConditionsMet
(Request request, Response response, Callback callback) protected boolean
InetAccessHandler.onConditionsMet
(Request request, Response response, Callback callback) boolean
QoSHandler.onConditionsMet
(Request request, Response response, Callback callback) boolean
ThreadLimitHandler.onConditionsMet
(Request request, Response response, Callback callback) protected boolean
BufferedResponseHandler.onConditionsNotMet
(Request request, Response response, Callback callback) protected boolean
ConditionalHandler.ElseNext.onConditionsNotMet
(Request request, Response response, Callback callback) protected abstract boolean
ConditionalHandler.onConditionsNotMet
(Request request, Response response, Callback callback) This method is called when the request has not met the conditions and is not to be handled by this handler.protected boolean
InetAccessHandler.onConditionsNotMet
(Request request, Response response, Callback callback) protected boolean
QoSHandler.onConditionsNotMet
(Request request, Response response, Callback callback) protected boolean
ThreadLimitHandler.onConditionsNotMet
(Request request, Response response, Callback callback) protected void
ConnectHandler.onConnectFailure
(Request request, Response response, Callback callback, Throwable failure) default void
StateTrackingHandler.Listener.onDemandCallbackBlocked
(Request request, StateTrackingHandler.ThreadInfo demandThreadInfo, StateTrackingHandler.ThreadInfo runThreadInfo) Invoked when therequest demand callback
run()
method blocks for longer than the timeout specified withStateTrackingHandler.getDemandCallbackTimeout()
.default void
StateTrackingHandler.Listener.onHandlerCallbackNotCompleted
(Request request, StateTrackingHandler.ThreadInfo handlerThreadInfo) Invoked when theHandler
callback is not completed within the timeout specified withStateTrackingHandler.getHandlerCallbackTimeout()
.default void
StateTrackingHandler.Listener.onHandlerException
(Request request, Throwable failure, StateTrackingHandler.ThreadInfo completionThreadInfo) Invoked when theHandler
chain throws an exception from theRequest.Handler.handle(Request, Response, Callback)
method.default void
StateTrackingHandler.Listener.onInvalidHandlerReturnValue
(Request request, StateTrackingHandler.ThreadInfo completionThreadInfo) Invoked when theHandler
chain returnsfalse
, but the handler callback has been completed.protected void
EventsHandler.onRequestRead
(Request request, Content.Chunk chunk) Invoked every time a request content chunk has been parsed, just before making it available to the application (i.e.protected void
StatisticsHandler.onRequestRead
(Request request, Content.Chunk chunk) protected void
EventsHandler.onResponseBegin
(Request request, int status, HttpFields headers) Invoked just before the response is line written to the network (i.e.protected void
EventsHandler.onResponseTrailersComplete
(Request request, HttpFields trailers) Invoked after the response trailers have been written and the finalEventsHandler.onResponseWriteComplete(Request, Throwable)
event was fired.protected void
EventsHandler.onResponseWrite
(Request request, boolean last, ByteBuffer content) Invoked before each response content chunk has been written (i.e.protected void
StatisticsHandler.onResponseWrite
(Request request, boolean last, ByteBuffer content) protected void
EventsHandler.onResponseWriteComplete
(Request request, Throwable failure) Invoked after each response content chunk has been written (i.e.default void
StateTrackingHandler.Listener.onWriteBlocked
(Request request, StateTrackingHandler.ThreadInfo writeThreadInfo, StateTrackingHandler.ThreadInfo writingThreadInfo) Invoked when theResponse.write(boolean, ByteBuffer, Callback)
call blocks for longer than the timeout specified withStateTrackingHandler.getWriteTimeout()
.default void
StateTrackingHandler.Listener.onWriteCallbackBlocked
(Request request, Throwable writeFailure, StateTrackingHandler.ThreadInfo writeThreadInfo, StateTrackingHandler.ThreadInfo callbackThreadInfo) Invoked when the write callback passed toResponse.write(boolean, ByteBuffer, Callback)
blocks for longer than the timeout specified withStateTrackingHandler.getWriteCallbackTimeout()
.default void
StateTrackingHandler.Listener.onWriteCallbackNotCompleted
(Request request, Throwable writeFailure, StateTrackingHandler.ThreadInfo writeThreadInfo) Invoked when the write callback passed toResponse.write(boolean, ByteBuffer, Callback)
is not completed for longer than the timeout specified withStateTrackingHandler.getWriteTimeout()
.protected void
ConnectHandler.prepareContext
(Request request, ConcurrentMap<String, Object> context) void
boolean
boolean
boolean
boolean
boolean
<T> boolean
protected ContextRequest
ContextHandler.wrapRequest
(Request request, Response response) protected void
ErrorHandler.writeErrorHtml
(Request request, Writer writer, Charset charset, int code, String message, Throwable cause, boolean showStacks) protected void
ErrorHandler.writeErrorHtmlBody
(Request request, Writer writer, int code, String message, Throwable cause, boolean showStacks) protected void
ErrorHandler.writeErrorHtmlHead
(Request request, Writer writer, int code, String message) protected void
ErrorHandler.writeErrorHtmlMessage
(Request request, Writer writer, int code, String message, Throwable cause, String uri) protected void
ErrorHandler.writeErrorHtmlMeta
(Request request, Writer writer, Charset charset) protected void
ErrorHandler.writeErrorHtmlStacks
(Request request, Writer writer) protected void
ErrorHandler.writeErrorJson
(Request request, PrintWriter writer, int code, String message, Throwable cause, boolean showStacks) protected void
ErrorHandler.writeErrorPlain
(Request request, PrintWriter writer, int code, String message, Throwable cause, boolean showStacks) Modifier and TypeMethodDescriptionboolean
ModifierConstructorDescriptionConnectContext
(Request request, Response response, Callback callback, EndPoint endPoint) protected
ContextRequest
(ContextHandler.ScopedContext context, Request request) ContextResponse
(ContextHandler.ScopedContext context, Request request, Response response) protected
DelayedProcess
(Handler handler, Request request, Response response, Callback callback) ErrorRequest
(Request request, int status, String message, Throwable cause) UntilContentDelayedProcess
(Handler handler, Request request, Response response, Callback callback) UntilFormDelayedProcess
(Handler handler, Request wrapped, Response response, Callback callback, String contentType) UntilMultipartDelayedProcess
(Handler handler, Request request, Response response, Callback callback, String contentType, MultiPartConfig config) -
Uses of Request in org.eclipse.jetty.server.handler.gzip
Modifier and TypeMethodDescriptionGzipFactory.getDeflaterEntry
(Request request, long contentLength) GzipHandler.getDeflaterEntry
(Request request, long contentLength) boolean
ModifierConstructorDescriptionGzipRequest
(Request request, int inflateBufferSize) GzipResponseAndCallback
(GzipHandler handler, Request request, Response response, Callback callback) HeaderWrappingRequest
(Request request, HttpFields fields) -
Uses of Request in org.eclipse.jetty.server.internal
Modifier and TypeMethodDescriptionHttpChannelState.ChannelRequest.getLoggedRequest()
HttpChannelState.ChannelResponse.getRequest()
HttpChannelState.getRequest()
Modifier and TypeMethodDescriptionvoid
HttpChannelState.ChannelRequest.setLoggedRequest
(Request request) -
Uses of Request in org.eclipse.jetty.session
Modifier and TypeMethodDescriptionprotected void
AbstractSessionManager.addSessionStreamWrapper
(Request request) DefaultSessionIdManager.getExtendedId
(String clusterId, Request request) Get the session ID with any worker ID.SessionIdManager.getExtendedId
(String id, Request request) Get an extended id for a session.SessionHandler.getManagedSession
(Request request) SessionManager.getManagedSession
(Request request) boolean
void
AbstractSessionManager.newSession
(Request request, String requestedSessionId, Consumer<ManagedSession> consumer) Create a new Session, using the requested session id if possible.void
SessionManager.newSession
(Request request, String requestedSessionId, Consumer<ManagedSession> consumer) DefaultSessionIdManager.newSessionId
(Request request, String requestedId, long created) Create a new session id if necessary.SessionIdManager.newSessionId
(Request request, String requestedId, long created) Create a new Session ID.void
Force a change to the id of a session.DefaultSessionIdManager.renewSessionId
(String oldClusterId, String oldNodeId, Request request) Generate a new id for a session and update across all SessionManagers.SessionIdManager.renewSessionId
(String oldId, String oldExtendedId, Request request) Change the existing session id.protected AbstractSessionManager.RequestedSession
AbstractSessionManager.resolveRequestedSessionId
(Request request) Find any Session associated with the Request. -
Uses of Request in org.eclipse.jetty.websocket.core.server
Modifier and TypeMethodDescriptionWebSocketMappings.getMatchedNegotiator
(Request request, BiConsumer<Request, PathSpec> consumer) Returns the mappedWebSocketNegotiator
if there is a match of givenrequest
against aregistered mapping
, otherwise returnsnull
if there is no match.boolean
boolean
Handshaker.isWebSocketUpgradeRequest
(Request request) A preliminary check to see if a request is likely to be a valid WebSocket Upgrade Request.boolean
WebSocketMappings.upgrade
(Request request, Response response, Callback callback, Configuration.Customizer defaultCustomizer) Attempts to find a WebSocket mapping and upgrade a request to WebSocket.boolean
WebSocketMappings.upgrade
(WebSocketNegotiator negotiator, Request request, Response response, Callback callback, Configuration.Customizer defaultCustomizer) Attempts to find a WebSocket mapping and upgrade a request to WebSocket.boolean
Handshaker.upgradeRequest
(WebSocketNegotiator negotiator, Request request, Response response, Callback callback, WebSocketComponents components, Configuration.Customizer defaultCustomizer) Attempts to upgrade a request to WebSocket.Modifier and TypeMethodDescriptionWebSocketMappings.getMatchedNegotiator
(Request request, BiConsumer<Request, PathSpec> consumer) Returns the mappedWebSocketNegotiator
if there is a match of givenrequest
against aregistered mapping
, otherwise returnsnull
if there is no match. -
Uses of Request in org.eclipse.jetty.websocket.core.server.internal
Modifier and TypeClassDescriptionclass
Upgrade request used for websocket negotiation.Modifier and TypeMethodDescriptionprotected abstract WebSocketConnection
AbstractHandshaker.createWebSocketConnection
(Request baseRequest, WebSocketCoreSession coreSession) protected WebSocketConnection
RFC6455Handshaker.createWebSocketConnection
(Request baseRequest, WebSocketCoreSession coreSession) protected WebSocketConnection
RFC8441Handshaker.createWebSocketConnection
(Request request, WebSocketCoreSession coreSession) boolean
AbstractHandshaker.isWebSocketUpgradeRequest
(Request request) boolean
HandshakerSelector.isWebSocketUpgradeRequest
(Request request) boolean
RFC6455Handshaker.isWebSocketUpgradeRequest
(Request request) boolean
RFC8441Handshaker.isWebSocketUpgradeRequest
(Request request) protected void
RFC6455Negotiation.negotiateHeaders
(Request baseRequest) protected void
WebSocketNegotiation.negotiateHeaders
(Request baseRequest) protected abstract WebSocketNegotiation
AbstractHandshaker.newNegotiation
(Request request, Response response, Callback callback, WebSocketComponents webSocketComponents) protected WebSocketNegotiation
RFC6455Handshaker.newNegotiation
(Request request, Response response, Callback callback, WebSocketComponents webSocketComponents) protected WebSocketNegotiation
RFC8441Handshaker.newNegotiation
(Request request, Response response, Callback callback, WebSocketComponents webSocketComponents) protected WebSocketCoreSession
AbstractHandshaker.newWebSocketCoreSession
(Request request, FrameHandler handler, Negotiated negotiated, WebSocketComponents components) boolean
AbstractHandshaker.upgradeRequest
(WebSocketNegotiator negotiator, Request request, Response response, Callback callback, WebSocketComponents components, Configuration.Customizer defaultCustomizer) boolean
HandshakerSelector.upgradeRequest
(WebSocketNegotiator negotiator, Request request, Response response, Callback callback, WebSocketComponents components, Configuration.Customizer defaultCustomizer) ModifierConstructorDescriptionRFC6455Negotiation
(Request request, Response response, Callback callback, WebSocketComponents components) RFC8441Negotiation
(Request request, Response response, Callback callback, WebSocketComponents components) ServerUpgradeRequestImpl
(WebSocketNegotiation negotiation, Request baseRequest) WebSocketNegotiation
(Request request, Response response, Callback callback, WebSocketComponents webSocketComponents) -
Uses of Request in org.eclipse.jetty.websocket.server
Modifier and TypeInterfaceDescriptioninterface
The HTTP request to upgrade to WebSocket.Modifier and TypeMethodDescriptionboolean
Matches the givenrequest
against existing WebSocket mappings, upgrading to WebSocket if there is a match.boolean
protected boolean
WebSocketUpgradeHandler.handle
(ServerWebSocketContainer container, Request request, Response response, Callback callback) boolean
ServerWebSocketContainer.upgrade
(WebSocketCreator creator, Request request, Response response, Callback callback) Upgrades the givenrequest
without matching against the WebSocket mappings. -
Uses of Request in org.eclipse.jetty.websocket.server.internal
Response.toRedirectURI(Request, String)