Class OAuthClientResponseFactory
- java.lang.Object
-
- org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory
-
public class OAuthClientResponseFactory extends 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(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)
-
-
-
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
-
-