ScriptHTTPReq details

ScriptHTTPReq methods enable you to perform tasks such as getting data that is passed to the endpoint, setting the URL to be called, and returning the URL string to be invoked.

Table 1. ScriptHTTPReq methods
ScriptHTTPReq methods Purpose
getData() Used to get byte[] data that was passed to the endpoint.
getSData() Used to get string data that was passed to the endpoint.
getMetaData() Used for getting the metadata java.util.Map object that was passed in to the endpoint. This method contains some of the JMS or Kafka message headers.
getEndPointName() Used for getting the name string of the endpoint.
setURL(String url) Sets the URL to be called. This overrides the URL, if that is set in the endpoint configuration.
getURL() Returns the URL string to be invoked.
addHeader(String name, String value) Adds an HTTP header and value pair to the request.
getHeaderProps() Gets the HTTP header and java.util.Map value for the request.
addUrlProp(String name, String value) Adds an HTTP URL query parameter and value pair to the request.
getUrlProps() Gets the HTTP query parameter and java.util.Map value for the request.
addFormProp(String name, String value) Adds an HTTP form parameter and value pair to the request.
getFormProps() Gets the HTTP form parameter and value java.util.Map for the request.