IBM InfoSphere Streams Version 4.1.0

Operator HTTPPost

Primitive operator image not displayed. Problem loading file: ../../image/tk$com.ibm.streamsx.inet/op$com.ibm.streamsx.inet.http$HTTPPost.svg

This operator sends incoming tuples to the specified HTTP server as part of a POST request. A single tuple will be sent as a body of one HTTP POST request. All attributes of the tuple will be serialized and sent to the server. Certain authentication modes are supported. Tuples are sent to the server one at a time in order of receipt. If the HTTP server cannot be accessed, the operation will be retried on the current thread and may temporarily block any additional tuples that arrive on the input port. By default, the data is sent in application/x-www-form-urlencoded UTF-8 encoded format.

Behavior in a consistent region

This operator cannot be placed at the start of a consistent region.

Summary

Ports
This operator has 1 input port and 1 output port.
Windowing
This operator does not accept any windowing configurations.
Parameters
This operator supports 7 parameters. (authenticationFile, authenticationProperty, authenticationType, headerContentType, maxRetries, retryDelay, url)
Metrics
This operator does not report any metrics.

Properties

Implementation
Java™

Input Ports

Ports (0)

All attributes of the input stream are sent as POST data to the specified HTTP server

Properties

Output Ports

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

Emits a tuple containing the reponse received from the server. Tuple structure must conform to the HTTPResponse type specified in this namespace.

Properties

Parameters

This operator supports 7 parameters.
authenticationFile

Path to the properties file containing authentication information. Authentication file is recommended to be stored in the application_dir/etc directory. Path of this file can be absolute or relative, if relative path is specified then it is relative to the application directory. See http_auth_basic.properties in the toolkits etc directory for a sample of basic authentication properties.

Properties
authenticationProperty

Properties to override those in the authentication file.

Properties
authenticationType

Valid options are "basic" and "none". Default is "none".

Properties
headerContentType

Set the content type of the HTTP request. If the value is set to "application/json" then the entire tuple is sent in JSON format. Default is "application/x-www-form-urlencoded". Note that if a value other than the above mentioned ones is specified, the input stream can only have a single attribute.

Properties
maxRetries

Maximum number of retries in case of failures/disconnects.

Properties
retryDelay

Wait time between retries in case of failures/disconnects.

Properties
url

URL to connect to

Properties

Libraries

Operator class library
Library Path: ../../impl/lib/com.ibm.streamsx.inet.jar, ../../opt/downloaded/*