org.apache.oltu.oauth2.client
Class URLConnectionClient

java.lang.Object
  extended by org.apache.oltu.oauth2.client.URLConnectionClient
All Implemented Interfaces:
HttpClient

public class URLConnectionClient
extends Object
implements HttpClient

Implementation of the OAuth HttpClient using URL Connection


Constructor Summary
URLConnectionClient()
           
 
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

URLConnectionClient

public URLConnectionClient()
Method Detail

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

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


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