Package org.apache.oltu.oauth2.client
Class URLConnectionClient
- java.lang.Object
-
- org.apache.oltu.oauth2.client.URLConnectionClient
-
- All Implemented Interfaces:
HttpClient
public class URLConnectionClient extends java.lang.Object implements HttpClient
Implementation of the OAuth HttpClient using URL Connection
-
-
Constructor Summary
Constructors Constructor Description URLConnectionClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends OAuthClientResponse>
Texecute(OAuthClientRequest request, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.String requestMethod, java.lang.Class<T> responseClass)
void
shutdown()
Shut down the client and release the resources associated with the HttpClient
-
-
-
Method Detail
-
execute
public <T extends OAuthClientResponse> T execute(OAuthClientRequest request, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.String requestMethod, java.lang.Class<T> responseClass) throws OAuthSystemException, OAuthProblemException
- Specified by:
execute
in interfaceHttpClient
- 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 interfaceHttpClient
-
-