Class: TorqueBox::Messaging::TextMessage

Inherits:
Message
  • Object
show all
Defined in:
messaging/lib/torquebox/messaging/text_message.rb

Constant Summary

ENCODING =
:text
JMS_TYPE =
:text

Constants inherited from Message

Message::DEFAULT_DECODE_ENCODING, Message::DEFAULT_ENCODE_ENCODING, Message::ENCODING_PROPERTY

Instance Attribute Summary

Attributes inherited from Message

#:jms_message

Instance Method Summary (collapse)

Methods inherited from Message

class_for_encoding, encoding_map, extract_encoding_from_message, inherited, #initialize, #initialize_from_message, #method_missing, new, #populate_message_headers, #populate_message_properties, register_encoding, #respond_to?, #set_encoding

Constructor Details

This class inherits a constructor from TorqueBox::Messaging::Message

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class TorqueBox::Messaging::Message

Instance Method Details

- (Object) decode



28
29
30
# File 'messaging/lib/torquebox/messaging/text_message.rb', line 28

def decode
  @jms_message.text
end

- (Object) encode(message)



24
25
26
# File 'messaging/lib/torquebox/messaging/text_message.rb', line 24

def encode(message)
  @jms_message.text = message || ''
end