Uses of Interface
org.eclipse.jetty.client.api.Request
Packages that use 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
-
Uses of Request in org.eclipse.jetty.client
Classes in org.eclipse.jetty.client that implement RequestMethods in org.eclipse.jetty.client that return RequestModifier 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.Deprecated.HttpRequest.idleTimeout
(long timeout, TimeUnit unit) HttpRequest.listener
(Request.Listener listener) HttpRequest.method
(org.eclipse.jetty.http.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
(org.eclipse.jetty.http.HttpVersion version) Methods in org.eclipse.jetty.client that return types with arguments of type RequestMethods in org.eclipse.jetty.client with parameters of type RequestModifier 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) Method parameters in org.eclipse.jetty.client with type arguments of type RequestModifier 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.Constructors in org.eclipse.jetty.client with parameters of type RequestModifierConstructorDescriptionHttpRequestException
(String message, Request request) HttpResponse
(Request request, List<Response.ResponseListener> listeners) -
Uses of Request in org.eclipse.jetty.client.api
Methods in org.eclipse.jetty.client.api that return RequestModifier 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)
insteadDeprecated.useheaders(Consumer)
insteadModifies the headers of this request.default Request
Request.idleTimeout
(long timeout, TimeUnit unit) Request.listener
(Request.Listener listener) Request.method
(org.eclipse.jetty.http.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) 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
(org.eclipse.jetty.http.HttpVersion version) Methods in org.eclipse.jetty.client.api with parameters of type RequestModifier and TypeMethodDescriptionvoid
Applies the authentication result to the given request.Authentication.authenticate
(Request request, ContentResponse response, Authentication.HeaderInfo headerInfo, org.eclipse.jetty.util.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.Constructors in org.eclipse.jetty.client.api with parameters of type RequestModifierConstructorDescription -
Uses of Request in org.eclipse.jetty.client.http
Methods in org.eclipse.jetty.client.http with parameters of type RequestModifier and TypeMethodDescriptionvoid
HttpConnectionOverHTTP.send
(Request request, Response.CompleteListener listener) -
Uses of Request in org.eclipse.jetty.client.util
Methods in org.eclipse.jetty.client.util that return RequestMethods in org.eclipse.jetty.client.util with parameters of type RequestModifier and TypeMethodDescriptionvoid
void
BasicAuthentication.authenticate
(Request request, ContentResponse response, Authentication.HeaderInfo headerInfo, org.eclipse.jetty.util.Attributes context) DigestAuthentication.authenticate
(Request request, ContentResponse response, Authentication.HeaderInfo headerInfo, org.eclipse.jetty.util.Attributes context) SPNEGOAuthentication.authenticate
(Request request, ContentResponse response, Authentication.HeaderInfo headerInfo, org.eclipse.jetty.util.Attributes context) Constructors in org.eclipse.jetty.client.util with parameters of type RequestModifierConstructorDescriptionFutureResponseListener
(Request request) FutureResponseListener
(Request request, int maxLength)
body(Content)
instead