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()
          Shut down the client and release the resources associated with the HttpClient
 
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()
Description copied from interface: HttpClient
Shut down the client and release the resources associated with the HttpClient

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 OAuthSystemException,
                                             OAuthProblemException
Specified by:
execute in interface HttpClient
Throws:
OAuthSystemException
OAuthProblemException


Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.