|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dyuproject.oauth.Transport
com.dyuproject.oauth.HttpPostTransport
public final class HttpPostTransport
Sends the oauth request parameters via HTTP POST with application/x-www-form-urlencoded content type.
Field Summary | |
---|---|
static HttpPostTransport |
DEFAULT
The default instance. |
Constructor Summary | |
---|---|
HttpPostTransport()
|
Method Summary | |
---|---|
static HttpPostTransport |
getDefault()
Gets the default instance. |
String |
getMethod()
Gets the method name of this transport. |
String |
getName()
Gets the name of this transport. |
void |
handleOAuthParameter(String key,
String value,
StringBuilder buffer)
Handles the encoded oauth key and value . |
HttpConnector.Response |
send(UrlEncodedParameterMap params,
Endpoint ep,
Token token,
TokenExchange exchange,
NonceAndTimestamp nts,
Signature signature,
HttpConnector connector)
Sends the params to the service provided and returns the http response HttpConnector.Response . |
Methods inherited from class com.dyuproject.oauth.Transport |
---|
appendToUrl, buildAuthUrl, buildAuthUrl, get, getAuthUrl, getAuthUrl, handleRequestParameter, putDefaults, register |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final HttpPostTransport DEFAULT
Constructor Detail |
---|
public HttpPostTransport()
Method Detail |
---|
public static HttpPostTransport getDefault()
public String getName()
Transport
getName
in class Transport
public String getMethod()
Transport
getMethod
in class Transport
public void handleOAuthParameter(String key, String value, StringBuilder buffer)
Signature.Listener
key
and value
.
public HttpConnector.Response send(UrlEncodedParameterMap params, Endpoint ep, Token token, TokenExchange exchange, NonceAndTimestamp nts, Signature signature, HttpConnector connector) throws IOException
Transport
HttpConnector.Response
.
send
in class Transport
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |