Contents

Declaration

Purpose
The XMLMapMessageAdapter provides a complete set of methods to convert a Map-Message to its corresponding XML document and vice-versa.

MethodSummary
public XMLMapMessageAdapter()

Constructor: Creates an XMLMapMessageAdapter.

public void setXMLParser (String xmlParser)
throws JMSException.

Sets the fully qualified name of the XML Parser to be used to parse the JMSMessage.

public void setProviderSpecificAdapter (IProviderSpecificMessageAdapter adapter)
throws JMSException.

Sets a provider specific adapter. By default the XML toolkit works with the adapters of FioranoMQ. Any other JMS Implementation can interoperate by setting and implementing the appropriate adapters.

public StringBuffer createXML( MapMessage msg,
boolean embedded) throws JMSException.

Converts the Message object to its XML representation. Raises a JMSException if the conversion fails.

public void createMessage(MapMessage msg, String uri)
throws JMSException

public void createMessage(MapMessage msg,
InputSource source) Throws JMSException

Converts the XML Message identified by the InputSource or a String representation of the URL into a JMSMessage.

public StringBuffer getMessageBody( MapMessage msg )
throws JMSException

Returns the header as an XML document from the JMS message.

public String getMessageBodyDTD()

Returns the DTD for the message body.

Adaptavist ThemeBuilder EngineAtlassian Confluence