org.shredzone.flattr4j.connector.impl
Class FlattrHttpClient

java.lang.Object
  extended by org.apache.http.impl.client.AbstractHttpClient
      extended by org.apache.http.impl.client.DefaultHttpClient
          extended by org.shredzone.flattr4j.connector.impl.FlattrHttpClient
All Implemented Interfaces:
org.apache.http.client.HttpClient

public class FlattrHttpClient
extends org.apache.http.impl.client.DefaultHttpClient

A Flattr HTTP Client that also supports https connections on Android.

Author:
Richard "Shred" Körber

Constructor Summary
FlattrHttpClient()
           
 
Method Summary
protected  org.apache.http.conn.ClientConnectionManager createClientConnectionManager()
           
static org.apache.http.conn.scheme.SchemeRegistry getSchemeRegistry()
          Gets a preconfigured SchemeRegistry suited for connecting to Flattr.
static org.apache.http.conn.ssl.SSLSocketFactory getSocketFactory()
          Gets a SSLSocketFactory suited for connecting to Flattr.
 
Methods inherited from class org.apache.http.impl.client.DefaultHttpClient
createHttpParams, createHttpProcessor, setDefaultHttpParams
 
Methods inherited from class org.apache.http.impl.client.AbstractHttpClient
addRequestInterceptor, addRequestInterceptor, addResponseInterceptor, addResponseInterceptor, clearRequestInterceptors, clearResponseInterceptors, createAuthSchemeRegistry, createClientRequestDirector, createClientRequestDirector, createConnectionKeepAliveStrategy, createConnectionReuseStrategy, createCookieSpecRegistry, createCookieStore, createCredentialsProvider, createHttpContext, createHttpRequestRetryHandler, createHttpRoutePlanner, createProxyAuthenticationHandler, createRedirectHandler, createRequestExecutor, createTargetAuthenticationHandler, createUserTokenHandler, determineParams, execute, execute, execute, execute, execute, execute, execute, execute, getAuthSchemes, getConnectionKeepAliveStrategy, getConnectionManager, getConnectionReuseStrategy, getCookieSpecs, getCookieStore, getCredentialsProvider, getHttpProcessor, getHttpRequestRetryHandler, getParams, getProxyAuthenticationHandler, getRedirectHandler, getRedirectStrategy, getRequestExecutor, getRequestInterceptor, getRequestInterceptorCount, getResponseInterceptor, getResponseInterceptorCount, getRoutePlanner, getTargetAuthenticationHandler, getUserTokenHandler, removeRequestInterceptorByClass, removeResponseInterceptorByClass, setAuthSchemes, setCookieSpecs, setCookieStore, setCredentialsProvider, setHttpRequestRetryHandler, setKeepAliveStrategy, setParams, setProxyAuthenticationHandler, setRedirectHandler, setRedirectStrategy, setReuseStrategy, setRoutePlanner, setTargetAuthenticationHandler, setUserTokenHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlattrHttpClient

public FlattrHttpClient()
Method Detail

getSocketFactory

public static org.apache.http.conn.ssl.SSLSocketFactory getSocketFactory()
Gets a SSLSocketFactory suited for connecting to Flattr.

Returns:
SSLSocketFactory

getSchemeRegistry

public static org.apache.http.conn.scheme.SchemeRegistry getSchemeRegistry()
Gets a preconfigured SchemeRegistry suited for connecting to Flattr.

Returns:
SchemeRegistry

createClientConnectionManager

protected org.apache.http.conn.ClientConnectionManager createClientConnectionManager()
Overrides:
createClientConnectionManager in class org.apache.http.impl.client.AbstractHttpClient


Copyright © 2010-2012. All Rights Reserved.