Class RequestResponseDecorator

java.lang.Object
org.drip.service.engine.RequestResponseDecorator

public class RequestResponseDecorator
extends java.lang.Object
RequestResponseDecorator contains the Functionality behind the DROP API Compute Service Engine Request and Response Header Fields Affixing/Decoration.



Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    RequestResponseDecorator()  
  • Method Summary

    Modifier and Type Method Description
    static boolean AffixRequestHeaders​(JSONObject jsonRequest)
    Affix the Headers on the JSON Request
    static boolean AffixResponseHeaders​(JSONObject jsonResponse, JSONObject jsonRequest)
    Affix the Headers on the JSON Response

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RequestResponseDecorator

      public RequestResponseDecorator()
  • Method Details

    • AffixRequestHeaders

      public static final boolean AffixRequestHeaders​(JSONObject jsonRequest)
      Affix the Headers on the JSON Request
      Parameters:
      jsonRequest - The JSON Request
      Returns:
      TRUE - The Headers successfully affixed
    • AffixResponseHeaders

      public static final boolean AffixResponseHeaders​(JSONObject jsonResponse, JSONObject jsonRequest)
      Affix the Headers on the JSON Response
      Parameters:
      jsonResponse - The JSON Response
      jsonRequest - The JSON Request
      Returns:
      TRUE - The Headers successfully affixed