org.exoplatform.social.client.core.net
Class SocialHttpClientImpl

java.lang.Object
  extended by org.exoplatform.social.client.core.net.SocialHttpClientImpl
All Implemented Interfaces:
org.apache.http.client.HttpClient, SocialHttpClient

public final class SocialHttpClientImpl
extends Object
implements SocialHttpClient

Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Jun 29, 2011


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.exoplatform.social.client.api.net.SocialHttpClient
SocialHttpClient.POLICY
 
Field Summary
static long DEFAULT_SYNC_MIN_GZIP_BYTES
           
 
Method Summary
 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)
           
 org.apache.http.conn.ClientConnectionManager getConnectionManager()
           
 org.apache.http.params.HttpParams getParams()
           
static SocialHttpClient newInstance()
          Create a new HttpClient with reasonable defaults.
 void setBasicAuthenticateToRequest()
          Setting the basic authenticate which uses the username/password in SocialClientContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 SocialHttpClient newInstance()
Create a new HttpClient with reasonable defaults.

Returns:
SocialHttpClient for you to use for all your requests.

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,
                                            org.apache.http.client.ClientProtocolException
Specified by:
execute in interface org.apache.http.client.HttpClient
Throws:
IOException
org.apache.http.client.ClientProtocolException

execute

public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request,
                                            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 org.apache.http.HttpResponse execute(org.apache.http.HttpHost target,
                                            org.apache.http.HttpRequest request)
                                     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 org.apache.http.HttpResponse execute(org.apache.http.HttpHost target,
                                            org.apache.http.HttpRequest request,
                                            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.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

setBasicAuthenticateToRequest

public void setBasicAuthenticateToRequest()
                                   throws SocialClientLibException
Description copied from interface: SocialHttpClient
Setting the basic authenticate which uses the username/password in SocialClientContext

Specified by:
setBasicAuthenticateToRequest in interface SocialHttpClient
Throws:
SocialClientLibException


Copyright © 2011 eXo Platform. All Rights Reserved.