net.oauth
Class OAuthAccessor
java.lang.Object
net.oauth.OAuthAccessor
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class OAuthAccessor
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
Properties of one User of an OAuthConsumer. Properties may be added freely,
e.g. to support extensions.
- Author:
- John Kristian
- See Also:
- Serialized Form
Method Summary |
OAuthAccessor |
clone()
|
java.lang.Object |
getProperty(java.lang.String name)
|
OAuthMessage |
newRequestMessage(java.lang.String method,
java.lang.String url,
java.util.Collection<? extends java.util.Map.Entry> parameters)
|
OAuthMessage |
newRequestMessage(java.lang.String method,
java.lang.String url,
java.util.Collection<? extends java.util.Map.Entry> parameters,
java.io.InputStream body)
Construct a request message containing the given parameters but no body. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
consumer
public final OAuthConsumer consumer
requestToken
public java.lang.String requestToken
accessToken
public java.lang.String accessToken
tokenSecret
public java.lang.String tokenSecret
OAuthAccessor
public OAuthAccessor(OAuthConsumer consumer)
clone
public OAuthAccessor clone()
- Overrides:
clone
in class java.lang.Object
getProperty
public java.lang.Object getProperty(java.lang.String name)
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
newRequestMessage
public OAuthMessage newRequestMessage(java.lang.String method,
java.lang.String url,
java.util.Collection<? extends java.util.Map.Entry> parameters,
java.io.InputStream body)
throws OAuthException,
java.io.IOException,
java.net.URISyntaxException
- Construct a request message containing the given parameters but no body.
Don't send the message, merely construct it. The caller will ordinarily
send it, for example by calling OAuthClient.invoke or access.
- Parameters:
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.
- Throws:
OAuthException
java.io.IOException
java.net.URISyntaxException
newRequestMessage
public OAuthMessage newRequestMessage(java.lang.String method,
java.lang.String url,
java.util.Collection<? extends java.util.Map.Entry> parameters)
throws OAuthException,
java.io.IOException,
java.net.URISyntaxException
- Throws:
OAuthException
java.io.IOException
java.net.URISyntaxException
Copyright © 2009. All Rights Reserved.