The basichttp I/O processor as per standard.

#include <BasicHTTPIOProcessor.h>

Inheritance diagram for uscxml::BasicHTTPIOProcessor:
[legend]
Collaboration diagram for uscxml::BasicHTTPIOProcessor:
[legend]

Public Member Functions

bool canAdaptPath ()
 Called by the server with the actual URL.
 
virtual std::shared_ptr< IOProcessorImplcreate (uscxml::IOProcessorCallbacks *callbacks)
 Factory demands a new instance. More...
 
void downloadCompleted (const URL &url)
 
void downloadFailed (const URL &url, int errorCode)
 
void downloadStarted (const URL &url)
 
virtual void eventFromSCXML (const std::string &target, const Event &event)
 We received an event from the SCXML Interpreter we are associated with. More...
 
Data getDataModelVariables ()
 Export a Data object for the `_x['name']` data-model namespace. More...
 
virtual std::list< std::string > getNames ()
 Return a list of names for types we implement.
 
virtual bool isValidTarget (const std::string &target)
 Determine whether the given target is a valid destination for events. More...
 
bool requestFromHTTP (const HTTPServer::Request &req)
 HTTPServlet. More...
 
void setURL (const std::string &url)
 
- Public Member Functions inherited from uscxml::URLMonitor
virtual void contentChunkReceived (const URL &url, const std::string &contentChunk)
 
virtual void headerChunkReceived (const URL &url, const std::string &headerChunk)
 

Protected Attributes

std::map< std::string, std::pair< URL, Event > > _sendRequests
 
std::string _url
 
- Protected Attributes inherited from uscxml::IOProcessorImpl
IOProcessorCallbacks_callbacks
 

Additional Inherited Members

- Protected Member Functions inherited from uscxml::IOProcessorImpl
void eventToSCXML (Event &event, const std::string &type, const std::string &origin, bool internal=false)
 Return an event to the SCXML Interpreter instance. More...
 

Member Function Documentation

std::shared_ptr< IOProcessorImpl > uscxml::BasicHTTPIOProcessor::create ( uscxml::IOProcessorCallbacks callbacks)
virtual
Parameters
interpreterThe imlementation of the associated Interpreter
Todo:
We will eventually introduce callbacks and prevent complete access to the interpreter.

Implements uscxml::IOProcessorImpl.

void uscxml::BasicHTTPIOProcessor::eventFromSCXML ( const std::string &  target,
const Event event 
)
virtual
Parameters
targetWhere the event is supposed to be delivered to.
eventThe event to deliver.

Implements uscxml::IOProcessorImpl.

Data uscxml::BasicHTTPIOProcessor::getDataModelVariables ( )
virtual
Returns
An object to be represented at `_x['name']`

Implements uscxml::EventHandlerImpl.

bool uscxml::BasicHTTPIOProcessor::isValidTarget ( const std::string &  target)
virtual
Parameters
targetA target where the Interpreter wants to deliver Events to.
Returns
Whether or not the target is valid.

Implements uscxml::IOProcessorImpl.

bool uscxml::BasicHTTPIOProcessor::requestFromHTTP ( const HTTPServer::Request req)
virtual

If a single instance of the parameter '_scxmleventname' is present, the SCXML Processor must use its value as the name of the SCXML event that it raises.

Implements uscxml::HTTPServlet.


The documentation for this class was generated from the following files: