Package | Description |
---|---|
org.eclipse.jetty.client |
Jetty Client : Implementation and Core Classes
This package provides APIs, utility classes and an implementation of an asynchronous HTTP client.
|
org.eclipse.jetty.client.api |
Jetty Client : API Classes
|
org.eclipse.jetty.client.http | |
org.eclipse.jetty.client.util |
Jetty Client : Utility Classes
|
org.eclipse.jetty.fcgi.client.http | |
org.eclipse.jetty.fcgi.server.proxy | |
org.eclipse.jetty.proxy |
Jetty Proxy : Async Proxy Support
|
Modifier and Type | Class and Description |
---|---|
class |
HttpRequest |
Modifier and Type | Method and Description |
---|---|
Request |
HttpRequest.accept(String... accepts) |
Request |
HttpRequest.agent(String agent) |
Request |
HttpRequest.attribute(String name,
Object value) |
Request |
HttpRequest.content(ContentProvider content) |
Request |
HttpRequest.content(ContentProvider content,
String contentType) |
Request |
HttpRequest.cookie(HttpCookie cookie) |
protected Request |
HttpClient.copyRequest(HttpRequest oldRequest,
URI newURI) |
Request |
HttpRequest.file(Path file) |
Request |
HttpRequest.file(Path file,
String contentType) |
Request |
HttpRequest.followRedirects(boolean follow) |
Request |
HttpResponse.getRequest() |
Request |
HttpRequestException.getRequest() |
Request |
HttpExchange.getRequest() |
Request |
HttpContentResponse.getRequest() |
Request |
HttpRequest.header(HttpHeader header,
String value) |
Request |
HttpRequest.header(String name,
String value) |
Request |
HttpRequest.idleTimeout(long timeout,
TimeUnit unit) |
Request |
HttpRequest.listener(Request.Listener listener) |
Request |
HttpRequest.method(HttpMethod method) |
Request |
HttpRequest.method(String method) |
Request |
HttpClient.newRequest(String uri)
Creates a new request with the specified URI.
|
Request |
HttpClient.newRequest(String host,
int port)
Creates a new request with the "http" scheme and the specified host and port
|
Request |
HttpClient.newRequest(URI uri)
Creates a new request with the specified URI.
|
Request |
HttpRequest.onComplete(Response.CompleteListener listener) |
Request |
HttpRequest.onRequestBegin(Request.BeginListener listener) |
Request |
HttpRequest.onRequestCommit(Request.CommitListener listener) |
Request |
HttpRequest.onRequestContent(Request.ContentListener listener) |
Request |
HttpRequest.onRequestFailure(Request.FailureListener listener) |
Request |
HttpRequest.onRequestHeaders(Request.HeadersListener listener) |
Request |
HttpRequest.onRequestQueued(Request.QueuedListener listener) |
Request |
HttpRequest.onRequestSuccess(Request.SuccessListener listener) |
Request |
HttpRequest.onResponseBegin(Response.BeginListener listener) |
Request |
HttpRequest.onResponseContent(Response.ContentListener listener) |
Request |
HttpRequest.onResponseContentAsync(Response.AsyncContentListener listener) |
Request |
HttpRequest.onResponseFailure(Response.FailureListener listener) |
Request |
HttpRequest.onResponseHeader(Response.HeaderListener listener) |
Request |
HttpRequest.onResponseHeaders(Response.HeadersListener listener) |
Request |
HttpRequest.onResponseSuccess(Response.SuccessListener listener) |
Request |
HttpRequest.param(String name,
String value) |
Request |
HttpRequest.path(String path) |
Request |
HttpClient.POST(String uri)
Creates a POST request to the specified URI.
|
Request |
HttpClient.POST(URI uri)
Creates a POST request to the specified URI.
|
Request |
HttpRedirector.redirect(Request request,
Response response,
Response.CompleteListener listener)
Redirects the given
response asynchronously. |
Request |
HttpRequest.scheme(String scheme) |
Request |
HttpRequest.timeout(long timeout,
TimeUnit unit) |
Request |
HttpRequest.version(HttpVersion version) |
Modifier and Type | Method and Description |
---|---|
boolean |
WWWAuthenticationProtocolHandler.accept(Request request,
Response response) |
boolean |
RedirectProtocolHandler.accept(Request request,
Response response) |
boolean |
ProxyAuthenticationProtocolHandler.accept(Request request,
Response response) |
boolean |
ProtocolHandler.accept(Request request,
Response response) |
boolean |
ContinueProtocolHandler.accept(Request request,
Response response) |
protected boolean |
HttpSender.beginToHeaders(Request request) |
protected boolean |
HttpSender.expects100Continue(Request request) |
protected void |
HttpRedirector.fail(Request request,
Response response,
Throwable failure) |
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 URI |
WWWAuthenticationProtocolHandler.getAuthenticationURI(Request request) |
protected URI |
ProxyAuthenticationProtocolHandler.getAuthenticationURI(Request request) |
protected abstract URI |
AuthenticationProtocolHandler.getAuthenticationURI(Request request) |
protected boolean |
HttpSender.headersToCommit(Request request) |
protected void |
HttpConnection.normalizeRequest(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 boolean |
HttpSender.queuedToBegin(Request request) |
Result |
HttpRedirector.redirect(Request request,
Response response)
Redirects the given
response , blocking until the redirect is complete. |
Request |
HttpRedirector.redirect(Request request,
Response response,
Response.CompleteListener listener)
Redirects the given
response asynchronously. |
void |
HttpConnection.send(Request request,
Response.CompleteListener listener) |
protected boolean |
HttpSender.someToContent(Request request,
ByteBuffer content) |
Constructor and Description |
---|
HttpRequestException(String message,
Request request) |
HttpResponse(Request request,
List<Response.ResponseListener> listeners) |
TimeoutCompleteListener(Request request) |
Modifier and Type | Method and Description |
---|---|
Request |
Request.accept(String... accepts) |
Request |
Request.agent(String agent) |
Request |
Request.attribute(String name,
Object value) |
Request |
Request.content(ContentProvider content) |
Request |
Request.content(ContentProvider content,
String contentType) |
Request |
Request.cookie(HttpCookie cookie) |
Request |
Request.file(Path file)
Shortcut method to specify a file as a content for this request, with the default content type of
"application/octect-stream".
|
Request |
Request.file(Path file,
String contentType)
Shortcut method to specify a file as a content for this request, with the given content type.
|
Request |
Request.followRedirects(boolean follow) |
Request |
Result.getRequest() |
Request |
Response.getRequest() |
Request |
Request.header(HttpHeader header,
String value)
Adds the given
value to the specified header . |
Request |
Request.header(String name,
String value) |
Request |
Request.idleTimeout(long timeout,
TimeUnit unit) |
Request |
Request.listener(Request.Listener listener) |
Request |
Request.method(HttpMethod method) |
Request |
Request.method(String method) |
Request |
Request.onComplete(Response.CompleteListener listener) |
Request |
Request.onRequestBegin(Request.BeginListener listener) |
Request |
Request.onRequestCommit(Request.CommitListener listener) |
Request |
Request.onRequestContent(Request.ContentListener listener) |
Request |
Request.onRequestFailure(Request.FailureListener listener) |
Request |
Request.onRequestHeaders(Request.HeadersListener listener) |
Request |
Request.onRequestQueued(Request.QueuedListener listener) |
Request |
Request.onRequestSuccess(Request.SuccessListener listener) |
Request |
Request.onResponseBegin(Response.BeginListener listener) |
Request |
Request.onResponseContent(Response.ContentListener listener) |
Request |
Request.onResponseContentAsync(Response.AsyncContentListener listener) |
Request |
Request.onResponseFailure(Response.FailureListener listener) |
Request |
Request.onResponseHeader(Response.HeaderListener listener) |
Request |
Request.onResponseHeaders(Response.HeadersListener listener) |
Request |
Request.onResponseSuccess(Response.SuccessListener listener) |
Request |
Request.param(String name,
String value)
Adds a query parameter with the given name and value.
|
Request |
Request.path(String path)
Specifies the path - and possibly the query - of this request.
|
Request |
Request.scheme(String scheme) |
Request |
Request.timeout(long timeout,
TimeUnit unit) |
Request |
Request.version(HttpVersion version) |
Modifier and Type | Method and Description |
---|---|
void |
Authentication.Result.apply(Request request)
Applies the authentication result to the given request.
|
Authentication.Result |
Authentication.authenticate(Request request,
ContentResponse response,
Authentication.HeaderInfo headerInfo,
Attributes context)
Executes the authentication mechanism for the given request, returning a
Result that can be
used to actually authenticate the request via Result#apply(Request) . |
void |
Request.BeginListener.onBegin(Request request)
Callback method invoked when the request begins being processed in order to be sent.
|
void |
Request.Listener.Adapter.onBegin(Request request) |
void |
Request.CommitListener.onCommit(Request request)
Callback method invoked when the request headers (and perhaps small content) have been sent.
|
void |
Request.Listener.Adapter.onCommit(Request request) |
void |
Request.ContentListener.onContent(Request request,
ByteBuffer content)
Callback method invoked when a chunk of request content has been sent successfully.
|
void |
Request.Listener.Adapter.onContent(Request request,
ByteBuffer content) |
void |
Request.FailureListener.onFailure(Request request,
Throwable failure)
Callback method invoked when the request has failed to be sent
|
void |
Request.Listener.Adapter.onFailure(Request request,
Throwable failure) |
void |
Request.HeadersListener.onHeaders(Request request)
Callback method invoked when the request headers (and perhaps small content) are ready to be sent.
|
void |
Request.Listener.Adapter.onHeaders(Request request) |
void |
Request.QueuedListener.onQueued(Request request)
Callback method invoked when the request is queued, waiting to be sent
|
void |
Request.Listener.Adapter.onQueued(Request request) |
void |
Request.SuccessListener.onSuccess(Request request)
Callback method invoked when the request has been successfully sent.
|
void |
Request.Listener.Adapter.onSuccess(Request request) |
void |
Connection.send(Request request,
Response.CompleteListener listener)
Sends a request with an associated response listener.
|
Constructor and Description |
---|
Result(Request request,
Response response) |
Result(Request request,
Response response,
Throwable responseFailure) |
Result(Request request,
Throwable requestFailure,
Response response) |
Result(Request request,
Throwable requestFailure,
Response response,
Throwable responseFailure) |
Modifier and Type | Method and Description |
---|---|
void |
HttpConnectionOverHTTP.send(Request request,
Response.CompleteListener listener) |
Modifier and Type | Method and Description |
---|---|
Request |
FutureResponseListener.getRequest() |
Modifier and Type | Method and Description |
---|---|
Authentication.Result |
DigestAuthentication.authenticate(Request request,
ContentResponse response,
Authentication.HeaderInfo headerInfo,
Attributes context) |
Authentication.Result |
BasicAuthentication.authenticate(Request request,
ContentResponse response,
Authentication.HeaderInfo headerInfo,
Attributes context) |
Constructor and Description |
---|
FutureResponseListener(Request request) |
FutureResponseListener(Request request,
int maxLength) |
Modifier and Type | Method and Description |
---|---|
protected void |
HttpClientTransportOverFCGI.customize(Request request,
HttpFields fastCGIHeaders) |
void |
HttpConnectionOverFCGI.send(Request request,
Response.CompleteListener listener) |
Modifier and Type | Method and Description |
---|---|
protected void |
FastCGIProxyServlet.customizeFastCGIHeaders(Request proxyRequest,
HttpFields fastCGIHeaders) |
protected void |
FastCGIProxyServlet.customizeProxyRequest(Request proxyRequest,
HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
protected Request |
ProxyServlet.addViaHeader(Request proxyRequest) |
Modifier and Type | Method and Description |
---|---|
protected Request |
ProxyServlet.addViaHeader(Request proxyRequest) |
protected void |
ProxyServlet.addXForwardedHeaders(Request proxyRequest,
HttpServletRequest request) |
protected void |
ProxyServlet.customizeProxyRequest(Request proxyRequest,
HttpServletRequest request)
Extension point for subclasses to customize the proxy request.
|
protected ReadListener |
AsyncProxyServlet.newReadListener(Request proxyRequest,
HttpServletRequest request,
DeferredContentProvider provider) |
protected void |
ProxyServlet.onClientRequestFailure(Request proxyRequest,
HttpServletRequest request,
Throwable failure) |
protected ByteBuffer |
ProxyServlet.ProxyInputStreamContentProvider.onRequestContent(Request proxyRequest,
HttpServletRequest request,
byte[] buffer,
int offset,
int length) |
protected void |
AsyncProxyServlet.StreamReader.onRequestContent(Request proxyRequest,
HttpServletRequest request,
DeferredContentProvider provider,
byte[] buffer,
int offset,
int length,
Callback callback) |
protected ContentProvider |
ProxyServlet.proxyRequestContent(Request proxyRequest,
HttpServletRequest request) |
protected ContentProvider |
AsyncProxyServlet.proxyRequestContent(Request proxyRequest,
HttpServletRequest request) |
Constructor and Description |
---|
AsyncProxyServlet.StreamReader(Request proxyRequest,
HttpServletRequest request,
DeferredContentProvider provider) |
ProxyServlet.ProxyInputStreamContentProvider(Request proxyRequest,
HttpServletRequest request,
InputStream input) |
Copyright © 1995-2015 Webtide. All Rights Reserved.