Method | Description | |
---|---|---|
FromMessage ( IMessage messageToConvert ) : object |
Convert from a NMS Message to a .NET object.
|
|
ToMessage ( object objectToConvert, ISession session ) : IMessage |
Convert a .NET object to a NMS Message using the supplied session to create the message object.
|
Method | Description | |
---|---|---|
CreateMessageForByteArray ( byte bytes, ISession session ) : IBytesMessage |
Create a NMS IBytesMessage for the given byte array.
|
|
CreateMessageForMap ( IDictionary map, ISession session ) : IMapMessage |
Create a NMS IMapMessage for the given Map.
|
|
CreateMessageForSerializable ( object objectToSend, ISession session ) : IObjectMessage |
Create a NMS IObjectMessage for the given Serializable object.
|
|
CreateMessageForString ( string text, ISession session ) : ITextMessage |
Create a NMS ITextMessage for the given String.
|
|
ExtractByteArrayFromMessage ( IBytesMessage message ) : byte[] |
Extract a byte array from the given IBytesMessage.
|
|
ExtractMapFromMessage ( IMapMessage message ) : IDictionary |
Extract a IDictionary from the given IMapMessage.
|
|
ExtractSerializableFromMessage ( IObjectMessage message ) : object |
Extracts the serializable object from the given object message.
|
|
ExtractStringFromMessage ( ITextMessage message ) : string |
Extract a String from the given ITextMessage.
|
protected CreateMessageForByteArray ( byte bytes, ISession session ) : IBytesMessage | ||
bytes | byte | the byyte array to convert /// |
session | ISession | current NMS session /// |
return | IBytesMessage |
protected CreateMessageForMap ( IDictionary map, ISession session ) : IMapMessage | ||
map | IDictionary | the Map to convert /// |
session | ISession | current NMS session /// |
return | IMapMessage |
protected CreateMessageForSerializable ( object objectToSend, ISession session ) : IObjectMessage | ||
objectToSend | object | the Serializable object to convert /// |
session | ISession | current NMS session /// |
return | IObjectMessage |
protected CreateMessageForString ( string text, ISession session ) : ITextMessage | ||
text | string | the String to convert /// |
session | ISession | current NMS session /// |
return | ITextMessage |
protected ExtractByteArrayFromMessage ( IBytesMessage message ) : byte[] | ||
message | IBytesMessage | the message to convert /// |
return | byte[] |
protected ExtractMapFromMessage ( IMapMessage message ) : IDictionary | ||
message | IMapMessage | the message to convert /// |
return | IDictionary |
protected ExtractSerializableFromMessage ( IObjectMessage message ) : object | ||
message | IObjectMessage | The message to convert. |
return | object |
protected ExtractStringFromMessage ( ITextMessage message ) : string | ||
message | ITextMessage | the message to convert /// |
return | string |
public FromMessage ( IMessage messageToConvert ) : object | ||
messageToConvert | IMessage | the message to convert /// |
return | object |
public ToMessage ( object objectToConvert, ISession session ) : IMessage | ||
objectToConvert | object | the object to convert /// |
session | ISession | the Session to use for creating a NMS Message /// |
return | IMessage |