|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of AsyncHandler in com.ning.http.client |
---|
Subinterfaces of AsyncHandler in com.ning.http.client | |
---|---|
interface |
ProgressAsyncHandler<T>
An extended AsyncHandler with two extra callback who get invoked during the content upload to a remote server. |
Classes in com.ning.http.client that implement AsyncHandler | |
---|---|
class |
AsyncCompletionHandler<T>
An AsyncHandler augmented with an AsyncCompletionHandler.onCompleted(Response) convenience method which gets called
when the Response has been fully received. |
class |
AsyncCompletionHandlerBase
Simple AsyncHandler of type Response
NOTE: Sending another asynchronous request from an AsyncHandler must be done using
another thread to avoid potential deadlock inside the AsyncHttpProvider
The recommended way is to use the ExecutorService from the AsyncHttpClientConfig :
@Override
public Response onCompleted(Response response) throws Exception
{
asyncHttpClient.getConfig().executorService().execute(new Runnable()
{
public void run()
{
asyncHttpClient.prepareGet(...);
}
});
return response;
}
|
Methods in com.ning.http.client with parameters of type AsyncHandler | ||
---|---|---|
|
AsyncHttpClient.BoundRequestBuilder.execute(AsyncHandler<T> handler)
|
|
|
AsyncHttpProvider.execute(Request request,
AsyncHandler<T> handler)
Execute the request and invoke the AsyncHandler when the response arrive. |
|
|
AsyncHttpClient.executeRequest(Request request,
AsyncHandler<T> handler)
Execute an HTTP request. |
Uses of AsyncHandler in com.ning.http.client.filter |
---|
Methods in com.ning.http.client.filter that return AsyncHandler | |
---|---|
AsyncHandler<T> |
FilterContext.getAsyncHandler()
Return the original or decorated AsyncHandler |
Constructors in com.ning.http.client.filter with parameters of type AsyncHandler | |
---|---|
FilterContext(AsyncHandler<T> asyncHandler,
Request request)
Create a new FilterContext |
|
FilterContext(AsyncHandler<T> asyncHandler,
Request request,
boolean replayRequest)
Create a new FilterContext |
|
FilterContext(AsyncHandler<T> asyncHandler,
Request request,
HttpResponseStatus responseStatus)
Create a new FilterContext |
Uses of AsyncHandler in com.ning.http.client.listener |
---|
Classes in com.ning.http.client.listener that implement AsyncHandler | |
---|---|
class |
TransferCompletionHandler
A AsyncHandler that can be used to notify a set of TransferListener
AsyncHttpClient client = new AsyncHttpClient();
TransferCompletionHandler tl = new TransferCompletionHandler();
tl.addTransferListener(new TransferListener() {
public void onRequestHeadersSent(FluentCaseInsensitiveStringsMap headers) {
}
public void onResponseHeadersReceived(FluentCaseInsensitiveStringsMap headers) {
}
public void onBytesReceived(ByteBuffer buffer) {
}
public void onBytesSent(ByteBuffer buffer) {
}
public void onRequestResponseCompleted() {
}
public void onThrowable(Throwable t) {
}
});
Response response = httpClient.prepareGet("http://...").execute(tl).get();
|
Uses of AsyncHandler in com.ning.http.client.providers.apache |
---|
Methods in com.ning.http.client.providers.apache with parameters of type AsyncHandler | ||
---|---|---|
|
ApacheAsyncHttpProvider.execute(Request request,
AsyncHandler<T> handler)
|
Constructors in com.ning.http.client.providers.apache with parameters of type AsyncHandler | |
---|---|
ApacheAsyncHttpProvider.ApacheClientRunnable(Request request,
AsyncHandler<T> asyncHandler,
org.apache.commons.httpclient.HttpMethodBase method,
ApacheResponseFuture<T> future,
org.apache.commons.httpclient.HttpClient httpClient)
|
|
ApacheResponseFuture(AsyncHandler<V> asyncHandler,
int responseTimeoutInMs,
Request request,
org.apache.commons.httpclient.HttpMethodBase method)
|
Uses of AsyncHandler in com.ning.http.client.providers.jdk |
---|
Methods in com.ning.http.client.providers.jdk with parameters of type AsyncHandler | ||
---|---|---|
|
JDKAsyncHttpProvider.execute(Request request,
AsyncHandler<T> handler)
|
Constructors in com.ning.http.client.providers.jdk with parameters of type AsyncHandler | |
---|---|
JDKFuture(AsyncHandler<V> asyncHandler,
int responseTimeoutInMs)
|
Uses of AsyncHandler in com.ning.http.client.providers.netty |
---|
Methods in com.ning.http.client.providers.netty that return AsyncHandler | |
---|---|
protected AsyncHandler<V> |
NettyResponseFuture.getAsyncHandler()
|
Methods in com.ning.http.client.providers.netty with parameters of type AsyncHandler | ||
---|---|---|
|
NettyAsyncHttpProvider.execute(Request request,
AsyncHandler<T> asyncHandler)
|
Constructors in com.ning.http.client.providers.netty with parameters of type AsyncHandler | |
---|---|
NettyResponseFuture(java.net.URI uri,
Request request,
AsyncHandler<V> asyncHandler,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
int responseTimeoutInMs,
NettyAsyncHttpProvider asyncHttpProvider)
|
Uses of AsyncHandler in com.ning.http.client.webdav |
---|
Classes in com.ning.http.client.webdav that implement AsyncHandler | |
---|---|
class |
WebDavCompletionHandlerBase<T>
Simple AsyncHandler that add support for WebDav's response manipulation. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |