net.smartam.leeloo.client
Class OAuthClient

java.lang.Object
  extended by net.smartam.leeloo.client.OAuthClient

public class OAuthClient
extends Object

OAuth Client - exposes a high-level API for Client Applications

Author:
Maciej Machulak, Lukasz Moren

Field Summary
protected  HttpClient httpClient
           
 
Constructor Summary
OAuthClient(HttpClient oauthClient)
           
 
Method Summary
 OAuthJSONAccessTokenResponse accessToken(OAuthClientRequest request)
           
<T extends OAuthAccessTokenResponse>
T
accessToken(OAuthClientRequest request, Class<T> responseClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

httpClient

protected HttpClient httpClient
Constructor Detail

OAuthClient

public OAuthClient(HttpClient oauthClient)
Method Detail

accessToken

public <T extends OAuthAccessTokenResponse> T accessToken(OAuthClientRequest request,
                                                          Class<T> responseClass)
                                               throws OAuthSystemException,
                                                      OAuthProblemException
Throws:
OAuthSystemException
OAuthProblemException

accessToken

public OAuthJSONAccessTokenResponse accessToken(OAuthClientRequest request)
                                         throws OAuthSystemException,
                                                OAuthProblemException
Throws:
OAuthSystemException
OAuthProblemException


Copyright © 2010. All Rights Reserved.