MAK RTIspy API Documentation for HLA 1516
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
DtWwwClientProtocol Class Reference

The DtWwwClientProtocol class is implements the communications protocol for communications between the HTTP server and the browser-based client. More...

+ Collaboration diagram for DtWwwClientProtocol:

List of all members.

Public Types

typedef DtWwwClientProtocol *(* CreatorType )(const DtRIDParameters &params)
 Web Spy Protocol creator method.

Public Member Functions

virtual ~DtWwwClientProtocol ()
 Dtor.
virtual std::auto_ptr< DtRtiMsgparseCommand (std::auto_ptr< DtString > command) const
 Decode the command message from the Web Client, and return the corresponding RTI control message and destination component id Returns NULL control msg if command is unrecognized or malformed.
virtual void parseResponse (DtWebSpyServer &parent, const DtWebSpyUtils::ConnectionIdentifier &connInfo, std::auto_ptr< DtRtiMsg > response)
 Decode the response from the RTI and update the web server.

Static Public Member Functions

static DtWwwClientProtocolcreate (const DtRIDParameters &params)
 Virtual constructor.
static void setCreatorFunction (CreatorType creator)
 Set the concrete type for the virtual constructor method.

Protected Types

typedef std::pair< unsigned
long, unsigned long > 
FragmentId
typedef std::map< FragmentId,
DtString * > 
MsgFragmentsByIdMap

Protected Member Functions

 DtWwwClientProtocol (const DtRIDParameters &params)
 Ctor protected - use virtual constructor method.
virtual void parseControlMsg (DtWebSpyServer &parent, const DtWebSpyUtils::ConnectionIdentifier &connInfo, const DtWwwControlRspMsg *cntlMsg) const
 Specific Message parsers:
virtual void parseFederateStateMsg (DtWebSpyServer &parent, const DtWebSpyUtils::ConnectionIdentifier &connInfo, const DtWwwFederateStateRspMsg *fedStateMsg)
virtual void parseComponentStateMsg (DtWebSpyServer &parent, const DtWebSpyUtils::ConnectionIdentifier &connInfo, const DtWwwStateRspMsg *stateMsg)
virtual void handleLrcLogResponse (DtWebSpyServer &parent, const DtWebSpyUtils::ConnectionIdentifier &connInfo, unsigned long componentId, DtWwwRequestXmlBlockSP response) const
 Deal with specific Command Response types.

Protected Attributes

const DtRIDParametersmyParams
MsgFragmentsByIdMap myPendingUpdates

Static Protected Attributes

static CreatorType theCreator = 0

Private Member Functions

 DtWwwClientProtocol (const DtWwwClientProtocol &)
 Copy and Assignment unimplemented.
DtWwwClientProtocoloperator= (DtWwwClientProtocol &)
 Copy and Assignment unimplmented.

Detailed Description

The DtWwwClientProtocol class is implements the communications protocol for communications between the HTTP server and the browser-based client.

Protocol Format for messages from Web-Client:

<request id="DtWebspyUtils::WwwControlMsgCommandId" link="wwwComponentId" conn="rtiConnectionId" fedex="federationHandle" fed="federateHandle">

Parameters:
attr1
attr2

</request>


Member Typedef Documentation

Web Spy Protocol creator method.

typedef std::pair< unsigned long, unsigned long > DtWwwClientProtocol::FragmentId [protected]
typedef std::map< FragmentId, DtString* > DtWwwClientProtocol::MsgFragmentsByIdMap [protected]

Constructor & Destructor Documentation

Copy and Assignment unimplemented.

Referenced by create().

Dtor.

Ctor protected - use virtual constructor method.


Member Function Documentation

Virtual constructor.

References DtWwwClientProtocol(), and theCreator.

Referenced by DtWebSpyServer::DtWebSpyServer().

void DtWwwClientProtocol::handleLrcLogResponse ( DtWebSpyServer parent,
const DtWebSpyUtils::ConnectionIdentifier connInfo,
unsigned long  componentId,
DtWwwRequestXmlBlockSP  response 
) const [protected, virtual]

Deal with specific Command Response types.

References DtWebSpyServer::appendConnectionLogEvent().

Referenced by parseControlMsg().

DtWwwClientProtocol& DtWwwClientProtocol::operator= ( DtWwwClientProtocol ) [private]

Copy and Assignment unimplmented.

std::auto_ptr< DtRtiMsg > DtWwwClientProtocol::parseCommand ( std::auto_ptr< DtString >  command) const [virtual]
void DtWwwClientProtocol::parseComponentStateMsg ( DtWebSpyServer parent,
const DtWebSpyUtils::ConnectionIdentifier connInfo,
const DtWwwStateRspMsg stateMsg 
) [protected, virtual]
void DtWwwClientProtocol::parseControlMsg ( DtWebSpyServer parent,
const DtWebSpyUtils::ConnectionIdentifier connInfo,
const DtWwwControlRspMsg cntlMsg 
) const [protected, virtual]
void DtWwwClientProtocol::parseFederateStateMsg ( DtWebSpyServer parent,
const DtWebSpyUtils::ConnectionIdentifier connInfo,
const DtWwwFederateStateRspMsg fedStateMsg 
) [protected, virtual]
void DtWwwClientProtocol::parseResponse ( DtWebSpyServer parent,
const DtWebSpyUtils::ConnectionIdentifier connInfo,
std::auto_ptr< DtRtiMsg response 
) [virtual]

Set the concrete type for the virtual constructor method.

References theCreator.


Member Data Documentation

Referenced by create(), and setCreatorFunction().


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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)