C# Класс Spring.Messaging.Nms.Support.Converter.XmlMessageConverter

Convert an object via XML serialization for sending via an ITextMessage
Наследование: IMessageConverter
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
GetTargetType ( ITextMessage message ) : Type

Gets the type of the target given the message.

GetXmlString ( object objectToConvert ) : string

Gets the XML string for an object

StringToUTF8ByteArray ( String xmlString ) : Byte[]

Converts a UTF8 string to a byte array

UTF8ByteArrayToString ( Byte characters ) : String

Converts a byte array to a UTF8 string.

Описание методов

FromMessage() публичный Метод

Convert from a NMS Message to a .NET object.
public FromMessage ( IMessage messageToConvert ) : object
messageToConvert IMessage the message to convert
Результат object

GetTargetType() защищенный Метод

Gets the type of the target given the message.
protected GetTargetType ( ITextMessage message ) : Type
message ITextMessage The message.
Результат System.Type

GetXmlString() защищенный Метод

Gets the XML string for an object
protected GetXmlString ( object objectToConvert ) : string
objectToConvert object The object to convert.
Результат string

StringToUTF8ByteArray() защищенный Метод

Converts a UTF8 string to a byte array
protected StringToUTF8ByteArray ( String xmlString ) : Byte[]
xmlString String The p XML string.
Результат Byte[]

ToMessage() публичный Метод

Convert a .NET object to a NMS Message using the supplied session to create the message 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
Результат IMessage

UTF8ByteArrayToString() защищенный Метод

Converts a byte array to a UTF8 string.
protected UTF8ByteArrayToString ( Byte characters ) : String
characters Byte The characters.
Результат String