Uses of Interface
org.eclipse.jetty.client.api.Request
Package
Description
Jetty Client : Implementation and Core Classes
This package provides APIs, utility classes and an implementation of an asynchronous HTTP client.
Jetty Client : API Classes
Jetty Client : Utility Classes
Jetty Proxy : Async Proxy Support
-
Uses of Request in org.eclipse.jetty.client
Modifier and TypeMethodDescriptionHttpRequest.body
(Request.Content content) HttpRequest.content
(ContentProvider content) HttpRequest.content
(ContentProvider content, String contentType) HttpRequest.cookie
(HttpCookie cookie) protected Request
HttpClient.copyRequest
(HttpRequest oldRequest, URI newURI) HttpRequest.followRedirects
(boolean follow) HttpContentResponse.getRequest()
HttpRequestException.getRequest()
HttpResponse.getRequest()
Deprecated.HttpRequest.header
(HttpHeader header, String value) Deprecated.HttpRequest.headers
(Consumer<HttpFields.Mutable> consumer) HttpRequest.idleTimeout
(long timeout, TimeUnit unit) HttpRequest.listener
(Request.Listener listener) HttpRequest.method
(HttpMethod method) HttpClient.newRequest
(String uri) Creates a new request with the specified absolute URI in string format.HttpClient.newRequest
(String host, int port) Creates a new request with the "http" scheme and the specified host and portHttpClient.newRequest
(URI uri) Creates a new request with the specified absolute URI.HttpRequest.onComplete
(Response.CompleteListener listener) HttpRequest.onRequestBegin
(Request.BeginListener listener) HttpRequest.onRequestCommit
(Request.CommitListener listener) HttpRequest.onRequestContent
(Request.ContentListener listener) HttpRequest.onRequestFailure
(Request.FailureListener listener) HttpRequest.onRequestHeaders
(Request.HeadersListener listener) HttpRequest.onRequestQueued
(Request.QueuedListener listener) HttpRequest.onRequestSuccess
(Request.SuccessListener listener) HttpRequest.onResponseBegin
(Response.BeginListener listener) HttpRequest.onResponseContent
(Response.ContentListener listener) HttpRequest.onResponseContentAsync
(Response.AsyncContentListener listener) HttpRequest.onResponseContentDemanded
(Response.DemandedContentListener listener) HttpRequest.onResponseFailure
(Response.FailureListener listener) HttpRequest.onResponseHeader
(Response.HeaderListener listener) HttpRequest.onResponseHeaders
(Response.HeadersListener listener) HttpRequest.onResponseSuccess
(Response.SuccessListener listener) HttpRequest.port
(int port) Creates a POST request to the specified URI.Creates a POST request to the specified URI.HttpRequest.pushListener
(BiFunction<Request, Request, Response.CompleteListener> listener) Sets a listener for pushed resources.HttpRedirector.redirect
(Request request, Response response, Response.CompleteListener listener) Redirects the givenresponse
asynchronously.HttpRequest.version
(HttpVersion version) Modifier and TypeMethodDescriptionboolean
boolean
Inspects the givenrequest
andresponse
to detect whether this protocol handler should handle them.boolean
boolean
boolean
boolean
protected boolean
UpgradeProtocolHandler.acceptHeaders
(Request request, Response response) protected boolean
HttpSender.expects100Continue
(Request request) protected void
protected void
Finds the first protocol handler thataccepts
the given request and response.protected ProtocolHandler
HttpClient.findProtocolHandler
(Request request, Response response) void
ResponseNotifier.forwardFailureComplete
(List<Response.ResponseListener> listeners, Request request, Throwable requestFailure, Response response, Throwable responseFailure) void
ResponseNotifier.forwardSuccessComplete
(List<Response.ResponseListener> listeners, Request request, Response response) protected abstract URI
AuthenticationProtocolHandler.getAuthenticationURI
(Request request) protected URI
ProxyAuthenticationProtocolHandler.getAuthenticationURI
(Request request) protected URI
WWWAuthenticationProtocolHandler.getAuthenticationURI
(Request request) void
RequestNotifier.notifyBegin
(Request request) void
RequestNotifier.notifyCommit
(Request request) void
RequestNotifier.notifyContent
(Request request, ByteBuffer content) void
RequestNotifier.notifyFailure
(Request request, Throwable failure) void
RequestNotifier.notifyHeaders
(Request request) void
RequestNotifier.notifyQueued
(Request request) void
RequestNotifier.notifySuccess
(Request request) protected void
ContinueProtocolHandler.onContinue
(Request request) Redirects the givenresponse
, blocking until the redirect is complete.HttpRedirector.redirect
(Request request, Response response, Response.CompleteListener listener) Redirects the givenresponse
asynchronously.HttpClient.resolveDestination
(Request request) void
HttpConnection.send
(Request request, Response.CompleteListener listener) void
HttpDestination.send
(Request request, Response.CompleteListener listener) Modifier and TypeMethodDescriptionHttpRequest.pushListener
(BiFunction<Request, Request, Response.CompleteListener> listener) Sets a listener for pushed resources.HttpRequest.pushListener
(BiFunction<Request, Request, Response.CompleteListener> listener) Sets a listener for pushed resources.ModifierConstructorDescriptionHttpRequestException
(String message, Request request) HttpResponse
(Request request, List<Response.ResponseListener> listeners) -
Uses of Request in org.eclipse.jetty.client.api
Modifier and TypeMethodDescriptionRequest.body
(Request.Content content) Request.content
(ContentProvider content) Deprecated.Request.content
(ContentProvider content, String contentType) Deprecated.usebody(Content)
insteadRequest.cookie
(HttpCookie cookie) Shortcut method to specify a file as a content for this request, with the default content type of "application/octet-stream".Shortcut method to specify a file as a content for this request, with the given content type.Request.followRedirects
(boolean follow) Response.getRequest()
Result.getRequest()
Deprecated.useheaders(Consumer)
insteadRequest.header
(HttpHeader header, String value) Deprecated.useheaders(Consumer)
insteadRequest.headers
(Consumer<HttpFields.Mutable> consumer) Modifies the headers of this request.default Request
Request.idleTimeout
(long timeout, TimeUnit unit) Request.listener
(Request.Listener listener) Request.method
(HttpMethod method) Request.onComplete
(Response.CompleteListener listener) Request.onRequestBegin
(Request.BeginListener listener) Request.onRequestCommit
(Request.CommitListener listener) Request.onRequestContent
(Request.ContentListener listener) Request.onRequestFailure
(Request.FailureListener listener) Request.onRequestHeaders
(Request.HeadersListener listener) Request.onRequestQueued
(Request.QueuedListener listener) Request.onRequestSuccess
(Request.SuccessListener listener) Request.onResponseBegin
(Response.BeginListener listener) Request.onResponseContent
(Response.ContentListener listener) Request.onResponseContentAsync
(Response.AsyncContentListener listener) Request.onResponseContentDemanded
(Response.DemandedContentListener listener) Request.onResponseFailure
(Response.FailureListener listener) Request.onResponseHeader
(Response.HeaderListener listener) Request.onResponseHeaders
(Response.HeadersListener listener) Registers a listener for the headers event.Request.onResponseSuccess
(Response.SuccessListener listener) Adds a URI query parameter with the given name and value.Specifies the URI path - and possibly the query - of this request.default Request
Request.port
(int port) Tags this request with the given metadata tag.Request.version
(HttpVersion version) Modifier and TypeMethodDescriptionvoid
Applies the authentication result to the given request.Authentication.authenticate
(Request request, ContentResponse response, Authentication.HeaderInfo headerInfo, Attributes context) Executes the authentication mechanism for the given request, returning aAuthentication.Result
that can be used to actually authenticate the request viaAuthentication.Result.apply(Request)
.void
Callback method invoked when the request begins being processed in order to be sent.default void
void
Callback method invoked when the request headers (and perhaps small content) have been sent.default void
void
Request.ContentListener.onContent
(Request request, ByteBuffer content) Callback method invoked when a chunk of request content has been sent successfully.default void
Request.Listener.onContent
(Request request, ByteBuffer content) void
Callback method invoked when the request has failed to be sentdefault void
void
Callback method invoked when the request headers (and perhaps small content) are ready to be sent.default void
default void
void
Callback method invoked when the request is queued, waiting to be sentdefault void
void
Callback method invoked when the request has been successfully sent.void
Connection.send
(Request request, Response.CompleteListener listener) Sends a request with an associated response listener.ModifierConstructorDescription -
Uses of Request in org.eclipse.jetty.client.http
Modifier and TypeMethodDescriptionvoid
HttpConnectionOverHTTP.send
(Request request, Response.CompleteListener listener) -
Uses of Request in org.eclipse.jetty.client.util
Modifier and TypeMethodDescriptionvoid
void
BasicAuthentication.authenticate
(Request request, ContentResponse response, Authentication.HeaderInfo headerInfo, Attributes context) DigestAuthentication.authenticate
(Request request, ContentResponse response, Authentication.HeaderInfo headerInfo, Attributes context) SPNEGOAuthentication.authenticate
(Request request, ContentResponse response, Authentication.HeaderInfo headerInfo, Attributes context) ModifierConstructorDescriptionFutureResponseListener
(Request request) FutureResponseListener
(Request request, int maxLength) -
Uses of Request in org.eclipse.jetty.fcgi.client.http
Modifier and TypeMethodDescriptionprotected HttpChannelOverFCGI
HttpConnectionOverFCGI.acquireHttpChannel
(int id, Request request) protected void
HttpClientTransportOverFCGI.customize
(Request request, HttpFields.Mutable fastCGIHeaders) protected HttpChannelOverFCGI
HttpConnectionOverFCGI.newHttpChannel
(Request request) void
HttpConnectionOverFCGI.send
(Request request, Response.CompleteListener listener) -
Uses of Request in org.eclipse.jetty.fcgi.server.proxy
Modifier and TypeMethodDescriptionprotected void
FastCGIProxyServlet.customizeFastCGIHeaders
(Request proxyRequest, HttpFields.Mutable fastCGIHeaders) protected void
FastCGIProxyServlet.sendProxyRequest
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest) -
Uses of Request in org.eclipse.jetty.proxy
Modifier and TypeMethodDescriptionprotected Request
AbstractProxyServlet.newProxyRequest
(javax.servlet.http.HttpServletRequest request, String rewrittenTarget) Modifier and TypeMethodDescriptionprotected void
AbstractProxyServlet.addProxyHeaders
(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected void
AbstractProxyServlet.addViaHeader
(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) Adds the HTTPVia
header to the proxied request, taking into account data present in the client request.protected void
AbstractProxyServlet.addViaHeader
(Request proxyRequest) Adds the HTTPVia
header to the proxied request.protected void
AbstractProxyServlet.addXForwardedHeaders
(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected void
AbstractProxyServlet.copyRequestHeaders
(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected AsyncMiddleManServlet.ContentTransformer
AsyncMiddleManServlet.newClientRequestContentTransformer
(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected javax.servlet.ReadListener
AsyncMiddleManServlet.newProxyReadListener
(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest, AsyncRequestContent content) protected AsyncRequestContent
AsyncMiddleManServlet.newProxyRequestContent
(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest) protected javax.servlet.ReadListener
AsyncProxyServlet.newReadListener
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Request proxyRequest, AsyncRequestContent content) protected void
AbstractProxyServlet.onClientRequestFailure
(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest, javax.servlet.http.HttpServletResponse proxyResponse, Throwable failure) protected void
AbstractProxyServlet.onContinue
(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected void
AsyncMiddleManServlet.onContinue
(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected void
ProxyServlet.onContinue
(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected void
AsyncProxyServlet.StreamReader.onRequestContent
(javax.servlet.http.HttpServletRequest request, Request proxyRequest, AsyncRequestContent content, byte[] buffer, int offset, int length, Callback callback) protected Request.Content
AsyncProxyServlet.proxyRequestContent
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Request proxyRequest) protected Request.Content
ProxyServlet.proxyRequestContent
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Request proxyRequest) Wraps the client-to-proxy request content in aRequest.Content
for the proxy-to-server request.protected void
AbstractProxyServlet.sendProxyRequest
(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest) ModifierConstructorDescriptionprotected
ProxyInputStreamRequestContent
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Request proxyRequest, InputStream input) protected
ProxyReader
(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest, AsyncRequestContent content) protected
StreamReader
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Request proxyRequest, AsyncRequestContent content) -
Uses of Request in org.eclipse.jetty.websocket.client.impl
-
Uses of Request in org.eclipse.jetty.websocket.core.client
-
Uses of Request in org.eclipse.jetty.websocket.javax.client.internal
body(Content)
instead