net.smartam.leeloo.client.response
Class OAuthJSONAccessTokenResponse

java.lang.Object
  extended by net.smartam.leeloo.client.response.OAuthClientResponse
      extended by net.smartam.leeloo.client.response.OAuthAccessTokenResponse
          extended by net.smartam.leeloo.client.response.OAuthJSONAccessTokenResponse

public class OAuthJSONAccessTokenResponse
extends OAuthAccessTokenResponse

Author:
Maciej Machulak, Lukasz Moren

Field Summary
 
Fields inherited from class net.smartam.leeloo.client.response.OAuthClientResponse
body, contentType, parameters, responseCode, validator
 
Constructor Summary
OAuthJSONAccessTokenResponse()
           
 
Method Summary
 String getAccessToken()
           
 String getExpiresIn()
           
 String getParam(String name)
           
 String getRefreshToken()
           
 String getScope()
           
protected  void setBody(String body)
           
protected  void setContentType(String contentType)
           
protected  void setResponseCode(int code)
           
 
Methods inherited from class net.smartam.leeloo.client.response.OAuthAccessTokenResponse
getBody, init
 
Methods inherited from class net.smartam.leeloo.client.response.OAuthClientResponse
validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthJSONAccessTokenResponse

public OAuthJSONAccessTokenResponse()
Method Detail

getAccessToken

public String getAccessToken()
Specified by:
getAccessToken in class OAuthAccessTokenResponse

getExpiresIn

public String getExpiresIn()
Specified by:
getExpiresIn in class OAuthAccessTokenResponse

getScope

public String getScope()
Specified by:
getScope in class OAuthAccessTokenResponse

getRefreshToken

public String getRefreshToken()
Specified by:
getRefreshToken in class OAuthAccessTokenResponse

setBody

protected void setBody(String body)
                throws OAuthProblemException
Specified by:
setBody in class OAuthClientResponse
Throws:
OAuthProblemException

setContentType

protected void setContentType(String contentType)
Specified by:
setContentType in class OAuthClientResponse

setResponseCode

protected void setResponseCode(int code)
Specified by:
setResponseCode in class OAuthClientResponse

getParam

public String getParam(String name)
Specified by:
getParam in class OAuthClientResponse


Copyright © 2010. All Rights Reserved.