Class OAuthClientResponseFactory
- java.lang.Object
-
- org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory
-
public class OAuthClientResponseFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description OAuthClientResponseFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends OAuthClientResponse>
TcreateCustomResponse(java.lang.String body, java.lang.String contentType, int responseCode, java.lang.Class<T> clazz)
static OAuthClientResponse
createGitHubTokenResponse(java.lang.String body, java.lang.String contentType, int responseCode)
static OAuthClientResponse
createJSONTokenResponse(java.lang.String body, java.lang.String contentType, int responseCode)
-
-
-
Method Detail
-
createGitHubTokenResponse
public static OAuthClientResponse createGitHubTokenResponse(java.lang.String body, java.lang.String contentType, int responseCode) throws OAuthProblemException
- Throws:
OAuthProblemException
-
createJSONTokenResponse
public static OAuthClientResponse createJSONTokenResponse(java.lang.String body, java.lang.String contentType, int responseCode) throws OAuthProblemException
- Throws:
OAuthProblemException
-
createCustomResponse
public static <T extends OAuthClientResponse> T createCustomResponse(java.lang.String body, java.lang.String contentType, int responseCode, java.lang.Class<T> clazz) throws OAuthSystemException, OAuthProblemException
-
-