Class HttpURLClient.OAuthWrapper

  • Enclosing class:
    HttpURLClient

    private static class HttpURLClient.OAuthWrapper
    extends java.lang.Object
    This class basically wraps Signpost classes so they are not loaded until HttpURLClient.setOAuth(Object, Object, Object, Object) is called. This allows Signpost to act as an optional dependency. If you are not using Signpost, you don't need the JAR on your classpath.
    Since:
    0.5.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected oauth.signpost.OAuthConsumer oauth  
    • Constructor Summary

      Constructors 
      Constructor Description
      OAuthWrapper​(java.lang.Object consumerKey, java.lang.Object consumerSecret, java.lang.Object accessToken, java.lang.Object accessSecret)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.net.HttpURLConnection sign​(java.net.HttpURLConnection request, org.apache.http.HttpEntity body)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • oauth

        protected oauth.signpost.OAuthConsumer oauth
    • Constructor Detail

      • OAuthWrapper

        OAuthWrapper​(java.lang.Object consumerKey,
                     java.lang.Object consumerSecret,
                     java.lang.Object accessToken,
                     java.lang.Object accessSecret)
    • Method Detail

      • sign

        java.net.HttpURLConnection sign​(java.net.HttpURLConnection request,
                                        org.apache.http.HttpEntity body)
                                 throws java.io.IOException
        Throws:
        java.io.IOException