org.apache.oltu.oauth2.client.response
Class OAuthClientResponseFactory
java.lang.Object
org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory
public class OAuthClientResponseFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OAuthClientResponseFactory
public OAuthClientResponseFactory()
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.