Package org.drip.service.engine
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. It provides the following Functions:
- Affix the Headers on the JSON Request
- Affix the Headers on the JSON Response
Module | Computational Core Module |
Library | Computation Support |
Project | Environment, Product/Definition Containers, and Scenario/State Manipulation APIs |
Package | Compute Engine Request-Response Thunker |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description RequestResponseDecorator()
-
Method Summary
Modifier and Type Method Description static boolean
AffixRequestHeaders(JSONObject requestJSON)
Affix the Headers on the JSON Requeststatic boolean
AffixResponseHeaders(JSONObject responseJSON, JSONObject requestJSON)
Affix the Headers on the JSON ResponseMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
RequestResponseDecorator
public RequestResponseDecorator()
-
-
Method Details
-
AffixRequestHeaders
Affix the Headers on the JSON Request- Parameters:
requestJSON
- The JSON Request- Returns:
- TRUE - The Headers successfully affixed
-
AffixResponseHeaders
Affix the Headers on the JSON Response- Parameters:
responseJSON
- The JSON ResponserequestJSON
- The JSON Request- Returns:
- TRUE - The Headers successfully affixed
-