Version: 17.07
Supported Since: 17.07
HTTP Cookie Setter Processor is a processing element which can be used to set HTTP cookie into header of the given message to an integration flow message which is supposed to send out using a HTTP egress connector.
In order to use this processing element, you must first select the HTTP NIO Connector dependency from the connector list when you are creating an empty Ultra project. If you have already created a project, you can add the HTTP NIO Connector dependency via Component Registry. From Tools menu, select Ultra Studio → Component Registry and from the Connectors list, select the HTTP NIO Connector dependency. |
Next |
The message will be sent to this outport if setting http cookie is successful |
On Exception |
The message will be sent to this outport if the processing element failed in setting http cookie operation |
Cookie Name * |
Basic |
The name of the cookie |
Cookie Value * |
Basic |
The value of the cookie |
Path * |
Basic |
The subset of URLs to which this cookie applies |
Domain * |
Basic |
The domain for which the cookie is valid |
Age * |
Basic |
The Max-Age attribute defines the lifetime of the cookie, in seconds. |
Secure * |
Basic |
Secure true if cookie is secure |
In the following diagram (figure 1) there is an integration flow which takes the message in from a http ingress connector and sends it out to a another http endpoint using http egress connector. The requirement is to set HTTP cookie into header of the HTTP request which sends out from the egress connector.
I have added an HTTP Cookie Setter processing element before the egress connector with the configurations as shown in the figure 2
Configuration for the Forward URL Postfix Setter element is as follows. To set postfix to the url, we gives cookie name and cookie value.