android.net.http
Class AndroidHttpClient

java.lang.Object
  extended by android.net.http.AndroidHttpClient
All Implemented Interfaces:
org.apache.http.client.HttpClient

public final class AndroidHttpClient
extends Object
implements org.apache.http.client.HttpClient


Field Summary
static long DEFAULT_SYNC_MIN_GZIP_BYTES
           
 
Method Summary
 void close()
           
 void disableCurlLogging()
           
 void enableCurlLogging(String name, int level)
           
 org.apache.http.HttpResponse execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request)
           
 org.apache.http.HttpResponse execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
           
<T> T
execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler)
           
<T> T
execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context)
           
 org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request)
           
 org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.protocol.HttpContext context)
           
<T> T
execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler)
           
<T> T
execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context)
           
protected  void finalize()
           
static org.apache.http.entity.AbstractHttpEntity getCompressedEntity(byte[] data, ContentResolver resolver)
           
 org.apache.http.conn.ClientConnectionManager getConnectionManager()
           
static long getMinGzipSize(ContentResolver resolver)
           
 org.apache.http.params.HttpParams getParams()
           
static InputStream getUngzippedContent(org.apache.http.HttpEntity entity)
           
static void modifyRequestToAcceptGzipResponse(org.apache.http.HttpRequest request)
           
static AndroidHttpClient newInstance(String userAgent)
           
static AndroidHttpClient newInstance(String userAgent, Context context)
           
static long parseDate(String dateString)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SYNC_MIN_GZIP_BYTES

public static long DEFAULT_SYNC_MIN_GZIP_BYTES
Method Detail

newInstance

public static AndroidHttpClient newInstance(String userAgent,
                                            Context context)

newInstance

public static AndroidHttpClient newInstance(String userAgent)

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

modifyRequestToAcceptGzipResponse

public static void modifyRequestToAcceptGzipResponse(org.apache.http.HttpRequest request)

getUngzippedContent

public static InputStream getUngzippedContent(org.apache.http.HttpEntity entity)
                                       throws IOException
Throws:
IOException

close

public void close()

getParams

public org.apache.http.params.HttpParams getParams()
Specified by:
getParams in interface org.apache.http.client.HttpClient

getConnectionManager

public org.apache.http.conn.ClientConnectionManager getConnectionManager()
Specified by:
getConnectionManager in interface org.apache.http.client.HttpClient

execute

public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request)
                                     throws IOException
Specified by:
execute in interface org.apache.http.client.HttpClient
Throws:
IOException

execute

public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request,
                                            org.apache.http.protocol.HttpContext context)
                                     throws IOException
Specified by:
execute in interface org.apache.http.client.HttpClient
Throws:
IOException

execute

public org.apache.http.HttpResponse execute(org.apache.http.HttpHost target,
                                            org.apache.http.HttpRequest request)
                                     throws IOException
Specified by:
execute in interface org.apache.http.client.HttpClient
Throws:
IOException

execute

public org.apache.http.HttpResponse execute(org.apache.http.HttpHost target,
                                            org.apache.http.HttpRequest request,
                                            org.apache.http.protocol.HttpContext context)
                                     throws IOException
Specified by:
execute in interface org.apache.http.client.HttpClient
Throws:
IOException

execute

public <T> T execute(org.apache.http.client.methods.HttpUriRequest request,
                     org.apache.http.client.ResponseHandler<? extends T> responseHandler)
          throws IOException,
                 org.apache.http.client.ClientProtocolException
Specified by:
execute in interface org.apache.http.client.HttpClient
Throws:
IOException
org.apache.http.client.ClientProtocolException

execute

public <T> T execute(org.apache.http.client.methods.HttpUriRequest request,
                     org.apache.http.client.ResponseHandler<? extends T> responseHandler,
                     org.apache.http.protocol.HttpContext context)
          throws IOException,
                 org.apache.http.client.ClientProtocolException
Specified by:
execute in interface org.apache.http.client.HttpClient
Throws:
IOException
org.apache.http.client.ClientProtocolException

execute

public <T> T execute(org.apache.http.HttpHost target,
                     org.apache.http.HttpRequest request,
                     org.apache.http.client.ResponseHandler<? extends T> responseHandler)
          throws IOException,
                 org.apache.http.client.ClientProtocolException
Specified by:
execute in interface org.apache.http.client.HttpClient
Throws:
IOException
org.apache.http.client.ClientProtocolException

execute

public <T> T execute(org.apache.http.HttpHost target,
                     org.apache.http.HttpRequest request,
                     org.apache.http.client.ResponseHandler<? extends T> responseHandler,
                     org.apache.http.protocol.HttpContext context)
          throws IOException,
                 org.apache.http.client.ClientProtocolException
Specified by:
execute in interface org.apache.http.client.HttpClient
Throws:
IOException
org.apache.http.client.ClientProtocolException

getCompressedEntity

public static org.apache.http.entity.AbstractHttpEntity getCompressedEntity(byte[] data,
                                                                            ContentResolver resolver)
                                                                     throws IOException
Throws:
IOException

getMinGzipSize

public static long getMinGzipSize(ContentResolver resolver)

enableCurlLogging

public void enableCurlLogging(String name,
                              int level)

disableCurlLogging

public void disableCurlLogging()

parseDate

public static long parseDate(String dateString)


Copyright © 2008-2012. All Rights Reserved.