Package groovyx.net.http
Class HttpURLClient.OAuthWrapper
java.lang.Object
groovyx.net.http.HttpURLClient.OAuthWrapper
- Enclosing class:
HttpURLClient
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 -
Constructor Summary
ConstructorsConstructorDescriptionOAuthWrapper
(Object consumerKey, Object consumerSecret, Object accessToken, Object accessSecret) -
Method Summary
Modifier and TypeMethodDescription(package private) HttpURLConnection
sign
(HttpURLConnection request, org.apache.http.HttpEntity body)
-
Field Details
-
oauth
protected oauth.signpost.OAuthConsumer oauth
-
-
Constructor Details
-
OAuthWrapper
-
-
Method Details
-
sign
HttpURLConnection sign(HttpURLConnection request, org.apache.http.HttpEntity body) throws IOException - Throws:
IOException
-