Uses of Interface
org.eclipse.jetty.server.Response
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 Server : Core Server API
Jetty Server : Core Handler API
Jetty GZIP Handler
Jetty Server : Session Management Implementations
-
Uses of Response 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 Response in org.eclipse.jetty.ee10.servlet
Modifier and TypeClassDescriptionclass
A core response wrapper that carries the servlet related response state, which may be used directly by the associatedServletApiResponse
.class
AHttpServletResponse
wrapped as a coreResponse
.Modifier and TypeMethodDescriptionServletApiResponse.getResponse()
ServletChannel.getResponse()
ServletContextHandler.ServletResponseInfo.getResponse()
ServletContextResponse.getResponse()
ServletCoreResponse.wrap
(Request coreRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, boolean included) Modifier and TypeMethodDescriptionvoid
Associate this channel with possibly wrapped values forServletChannel.getRequest()
,ServletChannel.getResponse()
andServletChannel.getCallback()
.boolean
boolean
boolean
boolean
protected boolean
ServletContextHandler.handleByContextHandler
(String pathInContext, ContextRequest request, Response response, Callback callback) 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 ServletContextResponse
ServletContextRequest.newServletContextResponse
(Response response) protected ContextRequest
ServletContextHandler.wrapRequest
(Request request, Response response) protected ContextResponse
ServletContextHandler.wrapResponse
(ContextRequest request, Response response) ModifierConstructorDescriptionprotected
ServletContextRequest
(ServletContextHandler.ServletContextApi servletContextApi, ServletChannel servletChannel, Request request, Response response, String decodedPathInContext, MatchedResource<ServletHandler.MappedServlet> matchedResource, SessionManager sessionManager) ServletContextResponse
(ServletChannel servletChannel, ServletContextRequest request, Response response) -
Uses of Response in org.eclipse.jetty.fcgi.proxy
Modifier and TypeMethodDescriptionprotected void
FastCGIProxyHandler.sendProxyToServerRequest
(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) -
Uses of Response in org.eclipse.jetty.http.spi
ModifierConstructorDescriptionJettyHttpExchange
(HttpContext jaxWsContext, Request req, Response resp) JettyHttpsExchange
(HttpContext jaxWsContext, Request req, Response resp) -
Uses of Response in org.eclipse.jetty.proxy
Modifier and TypeMethodDescriptionboolean
ProxyHandler.handle
(Request clientToProxyRequest, Response proxyToClientResponse, Callback proxyToClientCallback) 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 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 void
ProxyHandler.sendProxyToServerRequest
(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) ModifierConstructorDescriptionProxyResponseListener
(Request clientToProxyRequest, Request proxyToServerRequest, Response proxyToClientResponse, Callback proxyToClientCallback) -
Uses of Response in org.eclipse.jetty.rewrite.handler
-
Uses of Response in org.eclipse.jetty.security
Modifier and TypeInterfaceDescriptionstatic interface
A tag interface used to identify aResponse
that might be passed toAuthenticator.validateRequest(Request, Response, Callback)
while doing deferred authentication when a challenge cannot be sent.Modifier and TypeMethodDescriptionAuthenticationState.authenticate
(Request request, Response response, Callback callback) Get successful authentication for a 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.boolean
static boolean
AuthenticationState.Deferred.isDeferred
(Response response) 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.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.protected void
SecurityHandler.redirectToSecure
(Request request, Response response, Callback callback) Authenticator.NoOp.validateRequest
(Request request, Response response, Callback callback) Authenticator.validateRequest
(Request request, Response response, Callback callback) Validate a request -
Uses of Response in org.eclipse.jetty.security.authentication
Modifier and TypeMethodDescriptionLoginAuthenticator.LoggedOutAuthentication.authenticate
(Request request, Response response, Callback callback) 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
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 Response in org.eclipse.jetty.security.internal
-
Uses of Response in org.eclipse.jetty.security.openid
Modifier and TypeMethodDescriptionvoid
OpenIdAuthenticator.validateRequest
(Request request, Response response, Callback cb) -
Uses of Response in org.eclipse.jetty.server
Modifier and TypeMethodDescriptionstatic Response
Response.getOriginalResponse
(Response response) Unwraps the given response until the innermost wrapped response instance.Response.Wrapper.getWrapped()
Modifier and TypeMethodDescriptionstatic void
Response.addCookie
(Response response, HttpCookie cookie) Adds an HTTPHttpHeader.SET_COOKIE
header to the response.static <T> T
Unwraps the given response, recursively, until the wrapped instance is an instance of the given type, otherwise returnsnull
.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.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 long
Response.getContentBytesWritten
(Response response) static Response
Response.getOriginalResponse
(Response response) Unwraps the given response until the innermost wrapped response instance.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) void
void
void
static Content.Chunk.Processor
Response.newTrailersChunkProcessor
(Response response) Returns a chunk processor suitable to be passed to theContent.copy(Content.Source, Content.Sink, Content.Chunk.Processor, Callback)
method, that will handleTrailers
chunks by adding their fields to theHttpFields
supplied bygetTrailersSupplier()
.protected boolean
ResourceService.passConditionalHeaders
(Request request, Response response, HttpContent content, Callback callback) static void
Response.putCookie
(Response response, HttpCookie cookie) Put a HTTPHttpHeader.SET_COOKIE
header to the response.protected void
ResourceService.putHeaders
(Response response, HttpContent content, long contentLength) 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.static void
Response.replaceCookie
(Response response, HttpCookie cookie) Deprecated.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) protected void
ResourceService.serveWelcome
(Request request, Response response, Callback callback, String welcomeTarget) Serves the given welcome 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. -
Uses of Response in org.eclipse.jetty.server.handler
Modifier and TypeClassDescriptionclass
protected class
Modifier and TypeMethodDescriptionConnectHandler.ConnectContext.getResponse()
protected Response
DelayedHandler.DelayedProcess.getResponse()
Modifier and TypeMethodDescriptionprotected 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 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) 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 boolean
ContextHandler.handleByContextHandler
(String pathInContext, ContextRequest request, Response response, Callback callback) 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) 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
.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) protected boolean
BufferedResponseHandler.shouldBuffer
(Response response, boolean last) protected ContextRequest
ContextHandler.wrapRequest
(Request request, Response response) protected ContextResponse
ContextHandler.wrapResponse
(ContextRequest request, Response response) ModifierConstructorDescriptionConnectContext
(Request request, Response response, Callback callback, EndPoint endPoint) ContextResponse
(ContextHandler.ScopedContext context, Request request, Response response) protected
DelayedProcess
(Handler handler, Request request, Response response, Callback callback) MinimumDataRateResponse
(StatisticsHandler.MinimumDataRateHandler.MinimumDataRateRequest request, Response wrapped) 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 Response in org.eclipse.jetty.server.handler.gzip
Modifier and TypeMethodDescriptionboolean
ModifierConstructorDescriptionGzipResponseAndCallback
(GzipHandler handler, Request request, Response response, Callback callback) -
Uses of Response in org.eclipse.jetty.server.internal
-
Uses of Response in org.eclipse.jetty.session
-
Uses of Response in org.eclipse.jetty.websocket.core.server
Modifier and TypeMethodDescriptionboolean
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. -
Uses of Response in org.eclipse.jetty.websocket.core.server.internal
Modifier and TypeClassDescriptionclass
Upgrade response used for websocket negotiation.Modifier and TypeMethodDescriptionprotected 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 abstract void
AbstractHandshaker.prepareResponse
(Response response, WebSocketNegotiation negotiation) protected void
RFC6455Handshaker.prepareResponse
(Response response, WebSocketNegotiation negotiation) protected void
RFC8441Handshaker.prepareResponse
(Response response, WebSocketNegotiation negotiation) 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) ServerUpgradeResponseImpl
(WebSocketNegotiation negotiation, Response baseResponse) WebSocketNegotiation
(Request request, Response response, Callback callback, WebSocketComponents webSocketComponents) -
Uses of Response in org.eclipse.jetty.websocket.server
Modifier and TypeInterfaceDescriptioninterface
The HTTP response 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 Response in org.eclipse.jetty.websocket.server.internal
putCookie(Response, HttpCookie)