public class OAuthHttpClient extends Object
HttpURLConnection to make http requests.| Constructor and Description |
|---|
OAuthHttpClient() |
| Modifier and Type | Method and Description |
|---|---|
String |
getResponse(URL url)
Makes an http request to the input URL, and returns the response body as a
string.
|
String |
getResponse(URL url,
Map<String,String> headers)
Makes an http request to the input URL, and returns the response body as a
string.
|
public String getResponse(URL url) throws OAuthException
url - the url to make the request toOAuthException - if there was an error making the requestpublic String getResponse(URL url, Map<String,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 requestCopyright © 2012. All Rights Reserved.