Class URLConnectionClient

  • All Implemented Interfaces:
    org.apache.oltu.oauth2.client.HttpClient

    public class URLConnectionClient
    extends java.lang.Object
    implements org.apache.oltu.oauth2.client.HttpClient
    Implementation of the Oltu OAuth HttpClient using URL Connection
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends org.apache.oltu.oauth2.client.response.OAuthClientResponse>
      T
      execute​(org.apache.oltu.oauth2.client.request.OAuthClientRequest request, java.util.Map<java.lang.String,​java.lang.String> headers, java.lang.String requestMethod, java.lang.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

      • URLConnectionClient

        public URLConnectionClient()
      • URLConnectionClient

        public URLConnectionClient​(java.net.Proxy proxy)
    • Method Detail

      • execute

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

        public void shutdown()
        Specified by:
        shutdown in interface org.apache.oltu.oauth2.client.HttpClient