net.smartam.leeloo.client.response
Class OAuthClientResponseFactory

java.lang.Object
  extended by net.smartam.leeloo.client.response.OAuthClientResponseFactory

public class OAuthClientResponseFactory
extends Object

Author:
Maciej Machulak, Lukasz Moren

Constructor Summary
OAuthClientResponseFactory()
           
 
Method Summary
static
<T extends OAuthClientResponse>
T
createCustomResponse(String body, String contentType, int responseCode, Class<T> clazz)
           
static OAuthClientResponse createGitHubTokenResponse(String body, String contentType, int responseCode)
           
static OAuthClientResponse createJSONTokenResponse(String body, String contentType, int responseCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthClientResponseFactory

public OAuthClientResponseFactory()
Method Detail

createGitHubTokenResponse

public static OAuthClientResponse createGitHubTokenResponse(String body,
                                                            String contentType,
                                                            int responseCode)
                                                     throws OAuthProblemException
Throws:
OAuthProblemException

createJSONTokenResponse

public static OAuthClientResponse createJSONTokenResponse(String body,
                                                          String contentType,
                                                          int responseCode)
                                                   throws OAuthProblemException
Throws:
OAuthProblemException

createCustomResponse

public static <T extends OAuthClientResponse> T createCustomResponse(String body,
                                                                     String contentType,
                                                                     int responseCode,
                                                                     Class<T> clazz)
                                                          throws OAuthSystemException,
                                                                 OAuthProblemException
Throws:
OAuthSystemException
OAuthProblemException


Copyright © 2010. All Rights Reserved.