extract http property

Extract HTTP Property

Version: 17.07

Supported Since: 17.01

What is an Extract HTTP Property Processor?

Extract HTTP Cookie Property is a processing element which can be used to extract a HTTP properties from an integration flow and set it to a scope variable. Using this processing eelment can be extract following HTTP properties.

  • Authenticated roles

  • Authenticated username

  • HTTP cookie

  • HTTP method

  • JVM route

  • Message Entity Size

  • Message Header Size

  • Message Size

  • Local address

  • Local port

  • Remote Address

  • Remote Port

  • Service URL

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.

extract http property outports

Out Ports

Next

The message will be sent to this outport if extracting HTTP property is successful

On Exception

The message will be sent to this outport if the processing element failed in extracting HTTP property operation

Parameters

Variable Name *

Basic

The name of the variable name which should be set using the extracted value

Property *

Basic

The name of the property to be extracted

Cookie name *

Basic

The name of the HTTP Cookie to be extracted

Setting this parameter is only available on HTTP cookie property.

Sample Use Case

In the following diagram there is an integration flow which takes the message in from a http ingress connector and sends out using an http egress connector. During the integration I want to extract out an HTTP cookie which was in the original HTTP request and set it to a scope variable for later use. In the next processing element I have used a Logger to log the extracted scope variable.

extract_http_property_sample
Figure 1: extract_http_property_sample

Configuration for the Extract HTTP Property element is as follows. To extract a HTTP cookie and set it to a variable, first we want select cookie from Property drop down, refer cookie value using it’s name and give a scope variable name to use

extract_http_property_config
Figure 2: extract_http_property_config
In this topic
In this topic
Contact Us