Package org.apache.oltu.oauth2.client
Class URLConnectionClient
java.lang.Object
org.apache.oltu.oauth2.client.URLConnectionClient
- All Implemented Interfaces:
HttpClient
Implementation of the OAuth HttpClient using URL Connection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends OAuthClientResponse>
Texecute(OAuthClientRequest request, Map<String, String> headers, String requestMethod, Class<T> responseClass) voidshutdown()Shut down the client and release the resources associated with the HttpClient
-
Constructor Details
-
URLConnectionClient
public URLConnectionClient()
-
-
Method Details
-
execute
public <T extends OAuthClientResponse> T execute(OAuthClientRequest request, Map<String, String> headers, String requestMethod, Class<T> responseClass) throws OAuthSystemException, OAuthProblemException- Specified by:
executein interfaceHttpClient- Throws:
OAuthSystemExceptionOAuthProblemException
-
shutdown
public void shutdown()Description copied from interface:HttpClientShut down the client and release the resources associated with the HttpClient- Specified by:
shutdownin interfaceHttpClient
-