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
Jetty Proxy : Async Proxy Support
-
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 RequestHttpClient.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 givenresponseasynchronously.HttpRequest.version(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 TypeMethodDescriptionbooleanbooleanInspects the givenrequestandresponseto detect whether this protocol handler should handle them.booleanbooleanbooleanbooleanprotected booleanUpgradeProtocolHandler.acceptHeaders(Request request, Response response) protected booleanHttpSender.expects100Continue(Request request) protected voidprotected voidFinds the first protocol handler thatacceptsthe given request and response.protected ProtocolHandlerHttpClient.findProtocolHandler(Request request, Response response) voidResponseNotifier.forwardFailureComplete(List<Response.ResponseListener> listeners, Request request, Throwable requestFailure, Response response, Throwable responseFailure) voidResponseNotifier.forwardSuccessComplete(List<Response.ResponseListener> listeners, Request request, Response response) protected abstract URIAuthenticationProtocolHandler.getAuthenticationURI(Request request) protected URIProxyAuthenticationProtocolHandler.getAuthenticationURI(Request request) protected URIWWWAuthenticationProtocolHandler.getAuthenticationURI(Request request) voidRequestNotifier.notifyBegin(Request request) voidRequestNotifier.notifyCommit(Request request) voidRequestNotifier.notifyContent(Request request, ByteBuffer content) voidRequestNotifier.notifyFailure(Request request, Throwable failure) voidRequestNotifier.notifyHeaders(Request request) voidRequestNotifier.notifyQueued(Request request) voidRequestNotifier.notifySuccess(Request request) protected voidContinueProtocolHandler.onContinue(Request request) Redirects the givenresponse, blocking until the redirect is complete.HttpRedirector.redirect(Request request, Response response, Response.CompleteListener listener) Redirects the givenresponseasynchronously.HttpClient.resolveDestination(Request request) voidHttpConnection.send(Request request, Response.CompleteListener listener) voidHttpDestination.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)insteadRequest.header(HttpHeader header, String value) Deprecated.useheaders(Consumer)insteadRequest.headers(Consumer<HttpFields.Mutable> consumer) Modifies the headers of this request.default RequestRequest.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 RequestRequest.port(int port) Tags this request with the given metadata tag.Request.version(HttpVersion version) Methods in org.eclipse.jetty.client.api with parameters of type RequestModifier and TypeMethodDescriptionvoidApplies 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.Resultthat can be used to actually authenticate the request viaAuthentication.Result.apply(Request).voidCallback method invoked when the request begins being processed in order to be sent.default voidvoidCallback method invoked when the request headers (and perhaps small content) have been sent.default voidvoidRequest.ContentListener.onContent(Request request, ByteBuffer content) Callback method invoked when a chunk of request content has been sent successfully.default voidRequest.Listener.onContent(Request request, ByteBuffer content) voidCallback method invoked when the request has failed to be sentdefault voidvoidCallback method invoked when the request headers (and perhaps small content) are ready to be sent.default voiddefault voidvoidCallback method invoked when the request is queued, waiting to be sentdefault voidvoidCallback method invoked when the request has been successfully sent.voidConnection.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 TypeMethodDescriptionvoidHttpConnectionOverHTTP.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 TypeMethodDescriptionvoidvoidBasicAuthentication.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) Constructors in org.eclipse.jetty.client.util with parameters of type RequestModifierConstructorDescriptionFutureResponseListener(Request request) FutureResponseListener(Request request, int maxLength) -
Uses of Request in org.eclipse.jetty.fcgi.client.http
Methods in org.eclipse.jetty.fcgi.client.http with parameters of type RequestModifier and TypeMethodDescriptionprotected HttpChannelOverFCGIHttpConnectionOverFCGI.acquireHttpChannel(int id, Request request) protected voidHttpClientTransportOverFCGI.customize(Request request, HttpFields.Mutable fastCGIHeaders) protected HttpChannelOverFCGIHttpConnectionOverFCGI.newHttpChannel(Request request) voidHttpConnectionOverFCGI.send(Request request, Response.CompleteListener listener) -
Uses of Request in org.eclipse.jetty.fcgi.server.proxy
Methods in org.eclipse.jetty.fcgi.server.proxy with parameters of type RequestModifier and TypeMethodDescriptionprotected voidFastCGIProxyServlet.customizeFastCGIHeaders(Request proxyRequest, HttpFields.Mutable fastCGIHeaders) protected voidFastCGIProxyServlet.sendProxyRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest) -
Uses of Request in org.eclipse.jetty.proxy
Methods in org.eclipse.jetty.proxy that return RequestModifier and TypeMethodDescriptionprotected RequestAbstractProxyServlet.newProxyRequest(javax.servlet.http.HttpServletRequest request, String rewrittenTarget) Methods in org.eclipse.jetty.proxy with parameters of type RequestModifier and TypeMethodDescriptionprotected voidAbstractProxyServlet.addProxyHeaders(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected voidAbstractProxyServlet.addViaHeader(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) Adds the HTTPViaheader to the proxied request, taking into account data present in the client request.protected voidAbstractProxyServlet.addViaHeader(Request proxyRequest) Adds the HTTPViaheader to the proxied request.protected voidAbstractProxyServlet.addXForwardedHeaders(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected voidAbstractProxyServlet.copyRequestHeaders(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected AsyncMiddleManServlet.ContentTransformerAsyncMiddleManServlet.newClientRequestContentTransformer(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected javax.servlet.ReadListenerAsyncMiddleManServlet.newProxyReadListener(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest, AsyncRequestContent content) protected AsyncRequestContentAsyncMiddleManServlet.newProxyRequestContent(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest) protected javax.servlet.ReadListenerAsyncProxyServlet.newReadListener(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Request proxyRequest, AsyncRequestContent content) protected voidAbstractProxyServlet.onClientRequestFailure(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest, javax.servlet.http.HttpServletResponse proxyResponse, Throwable failure) protected voidAbstractProxyServlet.onContinue(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected voidAsyncMiddleManServlet.onContinue(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected voidProxyServlet.onContinue(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest) protected voidAsyncProxyServlet.StreamReader.onRequestContent(javax.servlet.http.HttpServletRequest request, Request proxyRequest, AsyncRequestContent content, byte[] buffer, int offset, int length, Callback callback) protected Request.ContentAsyncProxyServlet.proxyRequestContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Request proxyRequest) protected Request.ContentProxyServlet.proxyRequestContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Request proxyRequest) Wraps the client-to-proxy request content in aRequest.Contentfor the proxy-to-server request.protected voidAbstractProxyServlet.sendProxyRequest(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest) Constructors in org.eclipse.jetty.proxy with parameters of type RequestModifierConstructorDescriptionprotectedProxyInputStreamRequestContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Request proxyRequest, InputStream input) protectedProxyReader(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest, AsyncRequestContent content) protectedStreamReader(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Request proxyRequest, AsyncRequestContent content) -
Uses of Request in org.eclipse.jetty.websocket.client.impl
Classes in org.eclipse.jetty.websocket.client.impl that implement Request -
Uses of Request in org.eclipse.jetty.websocket.core.client
Classes in org.eclipse.jetty.websocket.core.client that implement Request -
Uses of Request in org.eclipse.jetty.websocket.javax.client.internal
Classes in org.eclipse.jetty.websocket.javax.client.internal that implement Request
body(Content)instead