org.apache.oltu.oauth2.httpclient4
Class HttpClient4

java.lang.Object
  extended by org.apache.oltu.oauth2.httpclient4.HttpClient4
All Implemented Interfaces:
HttpClient

public class HttpClient4
extends Object
implements HttpClient

Exemplar HttpClient4


Constructor Summary
HttpClient4()
           
HttpClient4(org.apache.http.client.HttpClient client)
           
 
Method Summary
<T extends OAuthClientResponse>
T
execute(OAuthClientRequest request, Map<String,String> headers, String requestMethod, Class<T> responseClass)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClient4

public HttpClient4()

HttpClient4

public HttpClient4(org.apache.http.client.HttpClient client)
Method Detail

shutdown

public void shutdown()
Specified by:
shutdown in interface HttpClient

execute

public <T extends OAuthClientResponse> T execute(OAuthClientRequest request,
                                                 Map<String,String> headers,
                                                 String requestMethod,
                                                 Class<T> responseClass)
                                      throws org.apache.oltu.oauth2.common.exception.OAuthSystemException,
                                             org.apache.oltu.oauth2.common.exception.OAuthProblemException
Specified by:
execute in interface HttpClient
Throws:
org.apache.oltu.oauth2.common.exception.OAuthSystemException
org.apache.oltu.oauth2.common.exception.OAuthProblemException


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.