public class OAuthClientResponseFactory extends Object
| Constructor and Description |
|---|
OAuthClientResponseFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends OAuthClientResponse> |
createCustomResponse(InputStream body,
String contentType,
int responseCode,
Map<String,List<String>> headers,
Class<T> clazz) |
static <T extends OAuthClientResponse> |
createCustomResponse(String body,
String contentType,
int responseCode,
Map<String,List<String>> headers,
Class<T> clazz) |
static OAuthClientResponse |
createGitHubTokenResponse(String body,
String contentType,
int responseCode) |
static OAuthClientResponse |
createJSONTokenResponse(String body,
String contentType,
int responseCode) |
public static OAuthClientResponse createGitHubTokenResponse(String body, String contentType, int responseCode) throws org.apache.oltu.oauth2.common.exception.OAuthProblemException
org.apache.oltu.oauth2.common.exception.OAuthProblemExceptionpublic static OAuthClientResponse createJSONTokenResponse(String body, String contentType, int responseCode) throws org.apache.oltu.oauth2.common.exception.OAuthProblemException
org.apache.oltu.oauth2.common.exception.OAuthProblemExceptionpublic static <T extends OAuthClientResponse> T createCustomResponse(String body, String contentType, int responseCode, Map<String,List<String>> headers, Class<T> clazz) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException, org.apache.oltu.oauth2.common.exception.OAuthProblemException
org.apache.oltu.oauth2.common.exception.OAuthSystemExceptionorg.apache.oltu.oauth2.common.exception.OAuthProblemExceptionpublic static <T extends OAuthClientResponse> T createCustomResponse(InputStream body, String contentType, int responseCode, Map<String,List<String>> headers, Class<T> clazz) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException, org.apache.oltu.oauth2.common.exception.OAuthProblemException
org.apache.oltu.oauth2.common.exception.OAuthSystemExceptionorg.apache.oltu.oauth2.common.exception.OAuthProblemExceptionCopyright © 2010–2016 The Apache Software Foundation. All rights reserved.