Class DeepLinkResponse


  • public class DeepLinkResponse
    extends Object
    • Constructor Detail

      • DeepLinkResponse

        public DeepLinkResponse​(String id_token)
        We check for the fields essential for the class to operate here.
    • Method Detail

      • isRequest

        public static boolean isRequest​(HttpServletRequest req)
        Check if the incoming request is a DeepLinkResponse
      • isRequest

        public static boolean isRequest​(String id_token)
        Check if the incoming request is a DeepLinkResponse
      • validate

        public boolean validate​(Key publicKey)
        Validate the incoming request
        Parameters:
        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.
      • getContentItem

        public org.json.simple.JSONObject getContentItem()
        Retrieve the parsed tool_proxy
      • getDeepLinks

        public org.json.simple.JSONArray getDeepLinks()
        Retrieve the @graph from the content item
      • getItemOfType

        public org.json.simple.JSONObject getItemOfType​(String itemType)
        Retrieve a particular type from the graph
        Parameters:
        String - messageType - Which item type you are looking for