activemq::connector::stomp::commands::BytesMessageCommand Class Reference

#include <BytesMessageCommand.h>

Inheritance diagram for activemq::connector::stomp::commands::BytesMessageCommand:

activemq::connector::stomp::commands::StompMessage< cms::BytesMessage > activemq::connector::stomp::commands::AbstractCommand< transport::Command > BytesMessage activemq::core::ActiveMQMessage activemq::connector::stomp::commands::StompCommand activemq::transport::Command activemq::connector::stomp::marshal::Marshalable List of all members.

Public Member Functions

 BytesMessageCommand (void)
 BytesMessageCommand (StompFrame *frame)
virtual ~BytesMessageCommand (void)
virtual cms::Message * clone (void) const
virtual void setBodyBytes (const unsigned char *buffer, const unsigned long numBytes) throw ( cms::CMSException )
virtual const unsigned char * getBodyBytes (void) const
virtual unsigned long getBodyLength (void) const

Detailed Description

Implements the interface for a cms::BytesMessage. Uses the template class StompMessage to implement all cms::Message type functionality and implements the BytesMessage interface here.


Constructor & Destructor Documentation

activemq::connector::stomp::commands::BytesMessageCommand::BytesMessageCommand void   )  [inline]
 

activemq::connector::stomp::commands::BytesMessageCommand::BytesMessageCommand StompFrame frame  )  [inline]
 

virtual activemq::connector::stomp::commands::BytesMessageCommand::~BytesMessageCommand void   )  [inline, virtual]
 


Member Function Documentation

virtual cms::Message* activemq::connector::stomp::commands::BytesMessageCommand::clone void   )  const [inline, virtual]
 

Clonse this message exactly, returns a new instance that the caller is required to delete.

Returns:
new copy of this message

virtual const unsigned char* activemq::connector::stomp::commands::BytesMessageCommand::getBodyBytes void   )  const [inline, virtual]
 

Gets the bytes that are contained in this message, user should copy this data into a user allocated buffer. Call getBodyLength to determine the number of bytes to expect.

Returns:
const pointer to a byte buffer

virtual unsigned long activemq::connector::stomp::commands::BytesMessageCommand::getBodyLength void   )  const [inline, virtual]
 

Returns the number of bytes contained in the body of this message.

Returns:
number of bytes.

virtual void activemq::connector::stomp::commands::BytesMessageCommand::setBodyBytes const unsigned char *  buffer,
const unsigned long  numBytes
throw ( cms::CMSException ) [inline, virtual]
 

sets the bytes given to the message body.

Parameters:
buffer Byte Buffer to copy
numBytes Number of bytes in Buffer to copy
Exceptions:
CMSException 


The documentation for this class was generated from the following file:
Generated on Thu Aug 3 18:03:32 2006 for activemq-cpp by  doxygen 1.4.5