public class IMSJSONRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
base_string |
static String |
CODE_MAJOR_FAILURE |
static String |
CODE_MAJOR_SUCCESS |
static String |
CODE_MAJOR_UNSUPPORTED |
String |
errorMessage |
String |
postBody |
static String |
STATUS |
static String |
STATUS_CODE |
static String |
STATUS_DESCRIPTION |
boolean |
valid |
| Constructor and Description |
|---|
IMSJSONRequest(javax.servlet.http.HttpServletRequest request) |
IMSJSONRequest(String bodyString) |
IMSJSONRequest(String oauth_consumer_key,
String oauth_secret,
javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
static String |
doErrorJSON(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IMSJSONRequest json,
String message,
Exception e) |
String |
getOAuthConsumerKey() |
String |
getPostBody() |
static Map<String,String> |
getStatus(String description,
String major) |
static Map<String,String> |
getStatusFailure(String desc) |
static Map<String,String> |
getStatusSuccess(String desc) |
static Map<String,String> |
getStatusUnsupported(String desc) |
boolean |
inArray(String[] theArray,
String theString) |
void |
loadFromRequest(javax.servlet.http.HttpServletRequest request) |
static void |
runTest() |
void |
validateRequest(String oauth_consumer_key,
String oauth_secret,
javax.servlet.http.HttpServletRequest request) |
void |
validateRequest(String oauth_consumer_key,
String oauth_secret,
javax.servlet.http.HttpServletRequest request,
String URL) |
public static final String STATUS
public static final String STATUS_CODE
public static final String STATUS_DESCRIPTION
public static final String CODE_MAJOR_SUCCESS
public static final String CODE_MAJOR_FAILURE
public static final String CODE_MAJOR_UNSUPPORTED
public String postBody
public boolean valid
public String errorMessage
public String base_string
public IMSJSONRequest(String oauth_consumer_key, String oauth_secret, javax.servlet.http.HttpServletRequest request)
public IMSJSONRequest(javax.servlet.http.HttpServletRequest request)
public IMSJSONRequest(String bodyString)
public String getOAuthConsumerKey()
public String getPostBody()
public void loadFromRequest(javax.servlet.http.HttpServletRequest request)
public void validateRequest(String oauth_consumer_key, String oauth_secret, javax.servlet.http.HttpServletRequest request)
public void validateRequest(String oauth_consumer_key, String oauth_secret, javax.servlet.http.HttpServletRequest request, String URL)
public static String doErrorJSON(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, IMSJSONRequest json, String message, Exception e) throws IOException
IOExceptionpublic static void runTest()
Copyright © 2009–2016 IMS Global Learning Consortium. All rights reserved.