tRESTResponse
Returns a specific HTTP status code to the client end as a response to the HTTP
and/or HTTP requests.
To enable the HTTPS support, you have to generate a keystore
and add some HTTPS security configuration properties in the
org.ops4j.pax.web.cfg
file of your Runtime container. For more information, see the
Talend ESB Container
Administration Guide.
tRESTResponse Standard properties
These properties are used to configure tRESTResponse running in the Standard Job framework.
The Standard
tRESTResponse component belongs to the ESB family.
This component is relevant only when used with one of the
Talend
solutions with ESB, as it should be used with the Service Repository node and the Data Service creation related wizard(s).
Basic settings
Return Body Type | Select a response body type from Document, String, and Byte in the list. |
Return status code |
Select a status code from the list to indicate the request – <<Custom>>: This option – Bad Request (400): The request – Internal Server Error (500): – OK (200): The request was – Resource Not Found (404): The |
Schema and Edit schema |
A schema is a row description, that is, it defines the number of The schema mode is Built-in: it Click Edit schema to make changes The input flow is retrieved from the previous component connected The output flow of tRESTResponse is a hard-coded field named body, the type of which is defined in the |
Advanced settings
Response Headers |
Type in the name-value pair(s) to pass additional information |
Drop JSON Response Root |
Select this check box to drop the root JSON element in the |
JSON Array Keys |
Type in the keywords for the JSON result to be formatted as a JSON array. |
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a |
Global Variables
Global Variables |
NB_LINE: the number of rows processed. This is an After
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see |
Usage
Usage rule |
This component covers the possibility that a Talend Job can be The tRESTResponse component |
Related scenario
For a scenario in which tRESTResponse is used, see
Using a REST service to accept HTTP GET requests and send responses.