Operator HTTPGetJSONContent

IBMStreams com.ibm.streamsx.inet Toolkit > com.ibm.streamsx.inet 3.4.0 > com.ibm.streamsx.inet.http > HTTPGetJSONContent

This operator is deprecated. Use HTTPRequest operator instead.

Periodically connects to an HTTP endpoint to GET JSON content as a single tuple. The JSON content is assigned to the jsonString attribute in the output tuple which must be of type rstring.

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 7 parameters.

Required: url

Optional: acceptAllCertificates, contentAttribute, extraHeaders, initDelay, iterations, period

Metrics
This operator reports 1 metric.

Properties

Implementation
Java

Output Ports

Assignments
Java operators do not support output assignments.
Ports (0)

Content of the HTTP GET request as an JSON attribute. Each successful HTTP request that returns a content results in a submitted tuple with an rstring attribute containing the returned content.

Properties

Parameters

This operator supports 7 parameters.

Required: url

Optional: acceptAllCertificates, contentAttribute, extraHeaders, initDelay, iterations, period

acceptAllCertificates

Accept all SSL certificates, even those that are self-signed. Setting this option will allow potentially insecure connections. Default is false.

Properties
contentAttribute

Output attribute to assign content to.

Properties
extraHeaders

Extra headers to send with request, format is "Header-Name: value"

Properties
initDelay

Delay in seconds before the operator starts producing tuples.

Properties
iterations

The number of tuples to submit. Negative value or zero means continually fetch and submit tuples.

Properties
period

Polling period in seconds. Tuples will be fetched every period seconds.

Properties
url

URL to HTTP GET content from.

Properties

Metrics

nFailedRequests - Counter

Number of HTTP requests that failed, did not return response 200.

Libraries

Operator class library
Library Path: ../../impl/lib/com.ibm.streamsx.inet.jar