public class OAuthAccessor extends Object implements Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
String |
accessToken |
OAuthConsumer |
consumer |
String |
requestToken |
String |
tokenSecret |
Constructor and Description |
---|
OAuthAccessor(OAuthConsumer consumer) |
Modifier and Type | Method and Description |
---|---|
OAuthAccessor |
clone() |
Object |
getProperty(String name) |
OAuthMessage |
newRequestMessage(String method,
String url,
Collection<? extends Map.Entry<String,String>> parameters) |
OAuthMessage |
newRequestMessage(String method,
String url,
Collection<? extends Map.Entry<String,String>> parameters,
InputStream body)
Construct a request message containing the given parameters but no body.
|
void |
setProperty(String name,
Object value) |
public String accessToken
public final OAuthConsumer consumer
public String requestToken
public String tokenSecret
public OAuthAccessor(OAuthConsumer consumer)
public OAuthAccessor clone()
public OAuthMessage newRequestMessage(String method, String url, Collection<? extends Map.Entry<String,String>> parameters) throws OAuthException, IOException, URISyntaxException
public OAuthMessage newRequestMessage(String method, String url, Collection<? extends Map.Entry<String,String>> parameters, InputStream body) throws OAuthException, IOException, URISyntaxException
method
- the HTTP request method. If this is null, use the default
method; that is getProperty("httpMethod") or (if that's null)
consumer.getProperty("httpMethod") or (if that's null)
OAuthMessage.GET.OAuthException
IOException
URISyntaxException
Copyright © 2008–2017 Province of British Columbia. All rights reserved.