IBMStreams streamsx.inetserver Toolkit > com.ibm.streamsx.inetserver 4.3.4 > com.ibm.streamsx.inet.rest
A set of operators using HTTP (REST) apis to interact with streaming data.
These operators all embed an instance of Eclipse Jetty to provide an web-server embedded within the operator.
Access to streaming data is provided through the HTTPTupleView and HTTPXMLView operators. These two operators support HTTP GET requests to fetch the latest version of the streaming data in the operator's state.
Data can be injected into a stream through HTTPTupleInjection, HTTPXMLInjection, HTTPBLOBInjection and HTTPJSONInjection operators. Each operators extracts data from an HTTP POST and submits a tuple on an output port.
WebContext provides a mechanism to serve files at a fixed web context, a fixed path relative to the root URL of the web server. Note that all the operators also support a fixed context using the context and contextResourceBase operator parameters.
The HTTPRequestProcess operator enables a developer to process HTTP form's and REST calls in a Streams application and deliver the appropriate response to the HTTP client.
Overall, these set of operators allow a complete web-application to be self-contained within an SPL application. In addition to the operators the webserver will serve up HTML and Javascript files. Javascript can be used with the JSON data provided by HTTPTupleView to visual live data using graphical packages such as DOJO and D3.
HTTPTupleView provides automatic visualization of tuples on its input ports. These are available through the URL streamsx.inet.resources/dojo/viewall.html.
see also namespace:com.ibm.streamsx.inet