Operator HTTPGetXMLContent
Periodically connects to an HTTP endpoint to GET XML content as a single tuple. The XML content is assigned to the first attribute in the output tuple which must be of type xml.The URL can have a single query parameter updated using the updateParameter parameter.When set the URL query string will be modified to set the named parameter to a new value.The default action is to set it to the number of milliseconds since the 1970 epoch.
Summary
- Ports
- This operator has 0 input ports and 1 output port.
- Windowing
- This operator does not accept any windowing configurations.
- Parameters
- This operator supports 8 parameters.
Required: url
Optional: acceptAllCertificates, extraHeaders, initDelay, iterations, period, updateParameter, updateParameterFromContent
- Metrics
- This operator reports 1 metric.
Properties
- Implementation
- Java
- Assignments
- Java operators do not support output assignments.
- Ports (0)
-
Content of the HTTP GET request as an XML attribute. Each successful HTTP request that returns a single well-formed XML document results in a submitted tuple with an XML attribute containing the returned content.
- Properties
-
- Optional: false
Required: url
Optional: acceptAllCertificates, extraHeaders, initDelay, iterations, period, updateParameter, updateParameterFromContent
- acceptAllCertificates
-
Accept all SSL certificates, even those that are self-signed. Setting this option will allow potentially insecure connections. Default is false.
- Properties
-
- Type: boolean
- Cardinality: 1
- Optional: true
- extraHeaders
-
Extra headers to send with request, format is "Header-Name: value"
- initDelay
-
Delay in seconds before the operator starts producing tuples.
- Properties
-
- Type: int64
- Cardinality: 1
- Optional: true
- iterations
-
The number of tuples to submit. Negative value or zero means continually fetch and submit tuples.
- Properties
-
- Type: int32
- Cardinality: 1
- Optional: true
- period
-
Polling period in seconds. Tuples will be fetched every period seconds.
- Properties
-
- Type: float64
- Cardinality: 1
- Optional: true
- updateParameter
-
URL query parameter to update based upon content in a successful request.
- Properties
-
- Type: rstring
- Cardinality: 1
- Optional: true
- updateParameterFromContent
-
Update the query parameter set in updateParameter from the value of this XPath expression against the returned content.
- Properties
-
- Type: rstring
- Cardinality: 1
- Optional: true
- url
-
URL to HTTP GET content from.
- Properties
-
- Type: rstring
- Cardinality: 1
- Optional: false
- nFailedRequests - Counter
-
Number of HTTP requests that failed, did not return response 200.
- Operator class library