public class OAuthHttpClient
extends java.lang.Object
HttpURLConnection to make http requests.| Constructor and Description |
|---|
OAuthHttpClient() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getResponse(java.net.URL url)
Makes an http request to the input URL, and returns the response body as a
string.
|
java.lang.String |
getResponse(java.net.URL url,
java.util.Map<java.lang.String,java.lang.String> headers)
Makes an http request to the input URL, and returns the response body as a
string.
|
public java.lang.String getResponse(java.net.URL url)
throws OAuthException
url - the url to make the request toOAuthException - if there was an error making the requestpublic java.lang.String getResponse(java.net.URL url,
java.util.Map<java.lang.String,java.lang.String> headers)
throws OAuthException
url - the url to make the request toheaders - any headers to add to the requestOAuthException - if there was an error making the request