|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.http.impl.client.cache.CachingHttpAsyncClient
@Contract(threading=SAFE) public class CachingHttpAsyncClient
| Constructor Summary | |
|---|---|
CachingHttpAsyncClient()
|
|
CachingHttpAsyncClient(org.apache.http.impl.client.cache.CacheConfig config)
|
|
CachingHttpAsyncClient(HttpAsyncClient client)
|
|
CachingHttpAsyncClient(HttpAsyncClient client,
org.apache.http.impl.client.cache.CacheConfig config)
|
|
CachingHttpAsyncClient(HttpAsyncClient client,
org.apache.http.client.cache.HttpCacheStorage storage,
org.apache.http.impl.client.cache.CacheConfig config)
|
|
CachingHttpAsyncClient(HttpAsyncClient client,
org.apache.http.client.cache.ResourceFactory resourceFactory,
org.apache.http.client.cache.HttpCacheStorage storage,
org.apache.http.impl.client.cache.CacheConfig config)
|
|
| Method Summary | ||
|---|---|---|
|
execute(org.apache.http.nio.protocol.HttpAsyncRequestProducer requestProducer,
org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> responseConsumer,
org.apache.http.concurrent.FutureCallback<T> callback)
|
|
|
execute(org.apache.http.nio.protocol.HttpAsyncRequestProducer requestProducer,
org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> responseConsumer,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<T> callback)
|
|
Future<org.apache.http.HttpResponse> |
execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)
|
|
Future<org.apache.http.HttpResponse> |
execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest originalRequest,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> futureCallback)
|
|
Future<org.apache.http.HttpResponse> |
execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)
|
|
Future<org.apache.http.HttpResponse> |
execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)
|
|
long |
getCacheHits()
Reports the number of times that the cache successfully responded to an HttpRequest without contacting the origin server. |
|
long |
getCacheMisses()
Reports the number of times that the cache contacted the origin server because it had no appropriate response cached. |
|
long |
getCacheUpdates()
Reports the number of times that the cache was able to satisfy a response by revalidating an existing but stale cache entry. |
|
boolean |
isSharedCache()
Reports whether this CachingHttpClient is configured as
a shared (public) or non-shared (private) cache. |
|
boolean |
supportsRangeAndContentRangeHeaders()
Reports whether this CachingHttpClient implementation
supports byte-range requests as specified by the Range
and Content-Range headers. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingHttpAsyncClient()
throws org.apache.http.nio.reactor.IOReactorException
org.apache.http.nio.reactor.IOReactorException
public CachingHttpAsyncClient(org.apache.http.impl.client.cache.CacheConfig config)
throws org.apache.http.nio.reactor.IOReactorException
org.apache.http.nio.reactor.IOReactorExceptionpublic CachingHttpAsyncClient(HttpAsyncClient client)
public CachingHttpAsyncClient(HttpAsyncClient client,
org.apache.http.impl.client.cache.CacheConfig config)
public CachingHttpAsyncClient(HttpAsyncClient client,
org.apache.http.client.cache.ResourceFactory resourceFactory,
org.apache.http.client.cache.HttpCacheStorage storage,
org.apache.http.impl.client.cache.CacheConfig config)
public CachingHttpAsyncClient(HttpAsyncClient client,
org.apache.http.client.cache.HttpCacheStorage storage,
org.apache.http.impl.client.cache.CacheConfig config)
| Method Detail |
|---|
public long getCacheHits()
HttpRequest without contacting the origin server.
public long getCacheMisses()
public long getCacheUpdates()
public Future<org.apache.http.HttpResponse> execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)
execute in interface HttpAsyncClient
public <T> Future<T> execute(org.apache.http.nio.protocol.HttpAsyncRequestProducer requestProducer,
org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> responseConsumer,
org.apache.http.concurrent.FutureCallback<T> callback)
execute in interface HttpAsyncClient
public <T> Future<T> execute(org.apache.http.nio.protocol.HttpAsyncRequestProducer requestProducer,
org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> responseConsumer,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<T> callback)
execute in interface HttpAsyncClient
public Future<org.apache.http.HttpResponse> execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)
execute in interface HttpAsyncClient
public Future<org.apache.http.HttpResponse> execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)
execute in interface HttpAsyncClient
public Future<org.apache.http.HttpResponse> execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest originalRequest,
org.apache.http.protocol.HttpContext context,
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> futureCallback)
execute in interface HttpAsyncClientpublic boolean supportsRangeAndContentRangeHeaders()
CachingHttpClient implementation
supports byte-range requests as specified by the Range
and Content-Range headers.
true if byte-range requests are supportedpublic boolean isSharedCache()
CachingHttpClient is configured as
a shared (public) or non-shared (private) cache. See CacheConfig.setSharedCache(boolean).
true if we are behaving as a shared (public)
cache
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||