Package com.ning.http.client

Interface Summary
AsyncHandler<T> An asynchronous handler or callback which gets invoked as soon as some data are available when processing an asynchronous response.
AsyncHttpProvider<A> Interface to be used when implementing custom asynchronous I/O HTTP client.
AsyncHttpProviderConfig<U,V> AsyncHttpProvider proprietary configurable properties.
Body A request body.
BodyGenerator Creates a request body.
ConnectionsPool<U,V> An interface used by an AsyncHttpProvider for caching http connections.
FutureImpl<V> Extended Future
Part Interface for the parts in a multipart request.
ProgressAsyncHandler<T> An extended AsyncHandler with two extra callback who get invoked during the content upload to a remote server.
RandomAccessBody A request body which supports random access to its contents.
Request The Request class can be used to construct HTTP request: Request r = new RequestBuilder().setUrl("url) .setRealm((new Realm.RealmBuilder()).setPrincipal(user) .setPassword(admin) .setRealmName("MyRealm") .setScheme(Realm.AuthScheme.DIGEST).build()); r.execute();
Request.EntityWriter An entity that can be used to manipulate the Request's body output before it get sent.
Response Represents the asynchronous HTTP response callback for an AsyncCompletionHandler
SignatureCalculator Interface that allows injecting signature calculator into RequestBuilder so that signature calculation and inclusion can be added as a pluggable component.
SSLEngineFactory Factory that creates an SSLEngine to be used for a single SSL connection.
 

Class Summary
AsyncCompletionHandler<T> An AsyncHandler augmented with an AsyncCompletionHandler.onCompleted(Response) convenience method which gets called when the Response has been fully received.
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: &#64;Override public Response onCompleted(Response response) throws Exception &#123; asyncHttpClient.getConfig().executorService().execute(new Runnable() &#123; public void run() &#123; asyncHttpClient.prepareGet(...); &#125; &#125;); return response; &#125;
AsyncHttpClient This class support asynchronous and synchronous HTTP request.
AsyncHttpClientConfig Configuration class to use with a AsyncHttpClient.
AsyncHttpClientConfig.Builder Builder for an AsyncHttpClient
ByteArrayPart  
Cookie  
FileBodyGenerator Creates a request body from the contents of a file.
FileBodyGenerator.FileBody  
FilePart A file multipart part.
FluentCaseInsensitiveStringsMap An implementation of a String -> List<String> map that adds a fluent interface, i.e.
FluentStringsMap An implementation of a String -> List<String> map that adds a fluent interface, i.e.
HttpContent Base class for callback class used by AsyncHandler
HttpResponseBodyPart A callback class used when an HTTP response body is received.
HttpResponseHeaders A class that represent the HTTP headers.
HttpResponseStatus A class that represent the HTTP response' status line (code + text)
PerRequestConfig Per request configuration.
ProxyServer Represents a proxy server.
Realm This class is required when authentication is needed.
Realm.RealmBuilder A builder for Realm
RequestBuilder Builder for a Request.
RequestBuilderBase<T extends RequestBuilderBase<T>> Builder for Request
Response.ResponseBuilder  
StringPart A string multipart part.
 

Enum Summary
AsyncHandler.STATE  
ProxyServer.Protocol  
Realm.AuthScheme  
 

Exception Summary
MaxRedirectException Thrown when the AsyncHttpClientConfig.getMaxRedirects() has been reached.
 



Copyright © 2010. All Rights Reserved.