Restlet Framework 2.2.3
OSGi Environments

org.restlet.ext.oauth
Class OAuthParameters

java.lang.Object
  extended by org.restlet.ext.oauth.OAuthParameters
All Implemented Interfaces:
OAuthResourceDefs

public class OAuthParameters
extends Object
implements OAuthResourceDefs

Author:
Shotaro Uchida

Field Summary
 
Fields inherited from interface org.restlet.ext.oauth.OAuthResourceDefs
ACCESS_TOKEN, CLIENT_ID, CLIENT_SECRET, CODE, ERROR, ERROR_DESC, ERROR_URI, EXPIRES_IN, GRANT_TYPE, PASSWORD, REDIR_URI, REFRESH_TOKEN, RESPONSE_TYPE, SCOPE, STATE, TOKEN_TYPE, TOKEN_TYPE_BEARER, TOKEN_TYPE_MAC, USERNAME
 
Constructor Summary
OAuthParameters()
           
 
Method Summary
 OAuthParameters add(String name, String value)
           
 OAuthParameters code(String code)
           
 OAuthParameters grantType(GrantType grantType)
           
 OAuthParameters password(String password)
           
 OAuthParameters redirectURI(String redirectURI)
           
 OAuthParameters refreshToken(String refreshToken)
           
 OAuthParameters responseType(ResponseType responseType)
           
 OAuthParameters scope(String[] scope)
           
 OAuthParameters state(String state)
           
protected  Form toForm()
           
 Reference toReference(String uri)
           
 Representation toRepresentation()
           
 String toString()
           
 OAuthParameters username(String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OAuthParameters

public OAuthParameters()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

responseType

public OAuthParameters responseType(ResponseType responseType)

grantType

public OAuthParameters grantType(GrantType grantType)

code

public OAuthParameters code(String code)

redirectURI

public OAuthParameters redirectURI(String redirectURI)

username

public OAuthParameters username(String username)

password

public OAuthParameters password(String password)

refreshToken

public OAuthParameters refreshToken(String refreshToken)

scope

public OAuthParameters scope(String[] scope)

state

public OAuthParameters state(String state)

add

public OAuthParameters add(String name,
                           String value)

toRepresentation

public Representation toRepresentation()

toReference

public Reference toReference(String uri)

toForm

protected Form toForm()

Restlet Framework 2.2.3
OSGi Environments

Copyright © 2005-2014 Restlet.