public class RequestBuilder extends Object
Constructor and Description |
---|
RequestBuilder(JumblrClient client) |
Modifier and Type | Method and Description |
---|---|
org.scribe.model.OAuthRequest |
constructGet(String path,
Map<String,?> queryParams) |
static org.scribe.model.OAuthRequest |
convertToMultipart(org.scribe.model.OAuthRequest request,
Map<String,?> bodyMap) |
ResponseWrapper |
get(String path,
Map<String,?> map) |
String |
getHostname() |
String |
getRedirectUrl(String path) |
ResponseWrapper |
post(String path,
Map<String,?> bodyMap) |
ResponseWrapper |
postMultipart(String path,
Map<String,?> bodyMap) |
void |
setConsumer(String consumerKey,
String consumerSecret) |
void |
setHostname(String host)
Set hostname without protocol
|
void |
setToken(String token,
String tokenSecret) |
public RequestBuilder(JumblrClient client)
public ResponseWrapper postMultipart(String path, Map<String,?> bodyMap) throws IOException
IOException
public ResponseWrapper post(String path, Map<String,?> bodyMap)
public ResponseWrapper get(String path, Map<String,?> map)
public org.scribe.model.OAuthRequest constructGet(String path, Map<String,?> queryParams)
public static org.scribe.model.OAuthRequest convertToMultipart(org.scribe.model.OAuthRequest request, Map<String,?> bodyMap) throws IOException
IOException
public String getHostname()
public void setHostname(String host)
host
- such as "api.tumblr.com"Copyright © 2014. All Rights Reserved.