public class DeepLinkResponse extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCEPT_MEDIA_TYPES |
static String |
CUSTOM |
static String |
DATA |
static String |
DEEP_LINKS |
static String |
ICON |
static String |
LINEITEM |
static String |
MEDIA_CC |
static String |
MEDIA_CC_1_1 |
static String |
MEDIA_CC_1_2 |
static String |
MEDIA_CC_1_3 |
static String |
MEDIA_LTILINKITEM |
static String |
TEXT |
static String |
TITLE |
static String |
TYPE_CONTENTITEM |
static String |
TYPE_FILEITEM |
static String |
TYPE_LINKITEM |
static String |
TYPE_LTILINKITEM |
static String |
URL |
| Constructor and Description |
|---|
DeepLinkResponse(String id_token)
We check for the fields essential for the class to operate here.
|
| Modifier and Type | Method and Description |
|---|---|
org.json.simple.JSONObject |
getContentItem()
Retrieve the parsed tool_proxy
|
org.json.simple.JSONArray |
getDeepLinks()
Retrieve the @graph from the content item
|
org.json.simple.JSONObject |
getItemOfType(String itemType)
Retrieve a particular type from the graph
|
static boolean |
isRequest(javax.servlet.http.HttpServletRequest req)
Check if the incoming request is a DeepLinkResponse
|
static boolean |
isRequest(String id_token)
Check if the incoming request is a DeepLinkResponse
|
String |
toString()
Return a string
|
boolean |
validate(Key publicKey)
Validate the incoming request
|
public static final String DEEP_LINKS
public static final String DATA
public static final String ACCEPT_MEDIA_TYPES
public static String MEDIA_LTILINKITEM
public static final String MEDIA_CC_1_1
public static final String MEDIA_CC_1_2
public static final String MEDIA_CC_1_3
public static final String MEDIA_CC
public static final String TYPE_LINKITEM
public static final String TYPE_LTILINKITEM
public static final String TYPE_CONTENTITEM
public static final String TYPE_FILEITEM
public static final String TITLE
public static final String TEXT
public static final String URL
public static final String LINEITEM
public static final String CUSTOM
public static final String ICON
public DeepLinkResponse(String id_token)
public static boolean isRequest(javax.servlet.http.HttpServletRequest req)
public static boolean isRequest(String id_token)
public boolean validate(Key publicKey)
URL - The URL of the incoming request. If this in null, the URL is taken
from the request object. Sometimes the request object can be misleading when
sitting behind a load balancer or some kind of proxy.public org.json.simple.JSONObject getContentItem()
public org.json.simple.JSONArray getDeepLinks()
public org.json.simple.JSONObject getItemOfType(String itemType)
String - messageType - Which item type you are looking forCopyright 2015- Charles R. Severance and licensed CC-BY Attribution 4.0