![]() |
MAK RTIspy API Documentation for HLA 1516
|
Inheritance diagram for DtEhsHttpConnectionMgr:
Collaboration diagram for DtEhsHttpConnectionMgr:Public Member Functions | |
| DtEhsHttpConnectionMgr (DtWebSpyServer &parent) | |
| virtual | ~DtEhsHttpConnectionMgr () |
| virtual void | tick (unsigned int timeout=0) |
| Offer the web server processing time and Gets command messages from the HTTP server. | |
| virtual void | postCommand (const DtWebSpyUtils::ConnectionIdentifier &connInfo, std::auto_ptr< DtString > command) |
| virtual void | addConnection (const DtWebSpyUtils::ConnectionIdentifier &connInfo) |
| Add a new RTI object with associated connection information. | |
| virtual void | updateConnection (const DtWebSpyUtils::ConnectionIdentifier &connInfo, std::auto_ptr< DtWebSpyUtils::ConnectionState > connState, bool appendToExisting) |
| Update the state of an individual component behind an existing web server connection. | |
| virtual void | appendConnectionLogEvent (const DtWebSpyUtils::ConnectionIdentifier &connInfo, unsigned long componentId, DtLrcConsoleLogXmlBlockSP logSegmentSP) |
| Update the event log of an individual component behind an existing web server connection. | |
| virtual void | removeConnection (const DtWebSpyUtils::ConnectionIdentifier &connInfo, const DtString &dropNotificationMsg="") |
| Remove a connection and replace it with a disconnect message when its corresponding connection is dropped Caller may specify additional information about the reason for the drop via the optional dropNotificationMsg (accepts HTML) | |
Static Public Member Functions | |
| static DtWebSpyHttpConnectionMgr * | create (DtWebSpyServer &parent) |
| Virtual constructor. | |
Protected Types | |
| typedef std::pair < DtWebSpyUtils::ConnectionIdentifier, DtString * > | WebSpyCommand |
| typedef DtThreadSafe < std::deque< WebSpyCommand > > | WebSpyCommandQ |
Protected Member Functions | |
| virtual WebSpyCommand | getNextCommand () |
Protected Attributes | |
| WebSpyCommandQ | myWebCommandQ |
| std::auto_ptr< DtWwwDocRoot > | myDocumentRoot |
Private Member Functions | |
| DtEhsHttpConnectionMgr (const DtEhsHttpConnectionMgr &) | |
| DtEhsHttpConnectionMgr & | operator= (DtEhsHttpConnectionMgr &) |
typedef std::pair< DtWebSpyUtils::ConnectionIdentifier, DtString* > DtEhsHttpConnectionMgr::WebSpyCommand [protected] |
typedef DtThreadSafe< std::deque< WebSpyCommand > > DtEhsHttpConnectionMgr::WebSpyCommandQ [protected] |
| DtEhsHttpConnectionMgr::DtEhsHttpConnectionMgr | ( | const DtEhsHttpConnectionMgr & | ) | [private] |
Referenced by create().
| DtEhsHttpConnectionMgr::~DtEhsHttpConnectionMgr | ( | ) | [virtual] |
| void DtEhsHttpConnectionMgr::addConnection | ( | const DtWebSpyUtils::ConnectionIdentifier & | connInfo | ) | [virtual] |
Add a new RTI object with associated connection information.
Implements DtWebSpyHttpConnectionMgr.
References myDocumentRoot.
| void DtEhsHttpConnectionMgr::appendConnectionLogEvent | ( | const DtWebSpyUtils::ConnectionIdentifier & | connInfo, |
| unsigned long | componentId, | ||
| DtLrcConsoleLogXmlBlockSP | logSegmentSP | ||
| ) | [virtual] |
Update the event log of an individual component behind an existing web server connection.
Implements DtWebSpyHttpConnectionMgr.
References myDocumentRoot.
| DtWebSpyHttpConnectionMgr * DtEhsHttpConnectionMgr::create | ( | DtWebSpyServer & | parent | ) | [static] |
Virtual constructor.
Reimplemented from DtWebSpyHttpConnectionMgr.
References DtEhsHttpConnectionMgr().
| DtEhsHttpConnectionMgr::WebSpyCommand DtEhsHttpConnectionMgr::getNextCommand | ( | ) | [protected, virtual] |
References myWebCommandQ.
Referenced by tick().
| DtEhsHttpConnectionMgr& DtEhsHttpConnectionMgr::operator= | ( | DtEhsHttpConnectionMgr & | ) | [private] |
| void DtEhsHttpConnectionMgr::postCommand | ( | const DtWebSpyUtils::ConnectionIdentifier & | connInfo, |
| std::auto_ptr< DtString > | command | ||
| ) | [virtual] |
References myWebCommandQ.
Referenced by DtFederateXML::handleLogRequest(), DtFederationXML::handleLogRequest(), DtFederateXML::handleRTICommand(), DtFederationXML::handleRtiExecCommand(), DtForwarderXML::handleStateRequest(), DtFederateXML::handleStateRequest(), DtFederationXML::handleStateRequest(), DtFederateXML::requestStateUpdate(), and DtFederationXML::requestStateUpdate().
| void DtEhsHttpConnectionMgr::removeConnection | ( | const DtWebSpyUtils::ConnectionIdentifier & | connInfo, |
| const DtString & | dropNotificationMsg = "" |
||
| ) | [virtual] |
Remove a connection and replace it with a disconnect message when its corresponding connection is dropped Caller may specify additional information about the reason for the drop via the optional dropNotificationMsg (accepts HTML)
Implements DtWebSpyHttpConnectionMgr.
References myDocumentRoot.
| void DtEhsHttpConnectionMgr::tick | ( | unsigned int | timeout = 0 | ) | [virtual] |
Offer the web server processing time and Gets command messages from the HTTP server.
Implements DtWebSpyHttpConnectionMgr.
References getNextCommand(), DtWebSpyHttpConnectionMgr::myClock, DtWebSpyHttpConnectionMgr::myParent, and DtWebSpyServer::postHttpCommand().
| void DtEhsHttpConnectionMgr::updateConnection | ( | const DtWebSpyUtils::ConnectionIdentifier & | connInfo, |
| std::auto_ptr< DtWebSpyUtils::ConnectionState > | connState, | ||
| bool | appendToExisting | ||
| ) | [virtual] |
Update the state of an individual component behind an existing web server connection.
Implements DtWebSpyHttpConnectionMgr.
References myDocumentRoot.
std::auto_ptr<DtWwwDocRoot> DtEhsHttpConnectionMgr::myDocumentRoot [protected] |
Referenced by addConnection(), appendConnectionLogEvent(), removeConnection(), and updateConnection().
WebSpyCommandQ DtEhsHttpConnectionMgr::myWebCommandQ [protected] |
Referenced by getNextCommand(), and postCommand().