org.apache.oltu.oauth2.client.response
Class OAuthClientResponseFactory

java.lang.Object
  extended by org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory

public class OAuthClientResponseFactory
extends Object


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–2014 The Apache Software Foundation. All rights reserved.