activemq-cpp-3.6.0
activemq::wireformat::openwire::OpenWireResponseBuilder Class Reference

Used to allow a MockTransport to generate response commands to OpenWire Commands. More...

#include <src/main/activemq/wireformat/openwire/OpenWireResponseBuilder.h>

Inheritance diagram for activemq::wireformat::openwire::OpenWireResponseBuilder:

Public Member Functions

 OpenWireResponseBuilder ()
virtual ~OpenWireResponseBuilder ()
virtual Pointer
< commands::Response
buildResponse (const Pointer< commands::Command > command)
 Given a Command, check if it requires a response and return the appropriate Response that the Broker would send for this Command.
virtual void buildIncomingCommands (const Pointer< commands::Command > command, decaf::util::LinkedList< Pointer< commands::Command > > &queue)
 When called the ResponseBuilder must construct all the Responses or Asynchronous commands that would be sent to this client by the Broker upon receipt of the passed command.
- Public Member Functions inherited from activemq::transport::mock::ResponseBuilder
virtual ~ResponseBuilder ()

Detailed Description

Used to allow a MockTransport to generate response commands to OpenWire Commands.

Constructor & Destructor Documentation

activemq::wireformat::openwire::OpenWireResponseBuilder::OpenWireResponseBuilder ( )
inline
virtual activemq::wireformat::openwire::OpenWireResponseBuilder::~OpenWireResponseBuilder ( )
inlinevirtual

Member Function Documentation

virtual void activemq::wireformat::openwire::OpenWireResponseBuilder::buildIncomingCommands ( const Pointer< commands::Command command,
decaf::util::LinkedList< Pointer< commands::Command > > &  queue 
)
virtual

When called the ResponseBuilder must construct all the Responses or Asynchronous commands that would be sent to this client by the Broker upon receipt of the passed command.

Parameters
command- The Command being sent to the Broker.
queue- Queue of Command sent back from the broker.

Implements activemq::transport::mock::ResponseBuilder.

virtual Pointer<commands::Response> activemq::wireformat::openwire::OpenWireResponseBuilder::buildResponse ( const Pointer< commands::Command command)
virtual

Given a Command, check if it requires a response and return the appropriate Response that the Broker would send for this Command.

Parameters
command- The command to build a response for
Returns
A Response object pointer, or NULL if no response.

Implements activemq::transport::mock::ResponseBuilder.


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