RoutingServerXmlMessageSerializer
, UniversalContactServerXmlMessageSerializer
public class XmlMessageSerializer
extends java.lang.Object
Constructor | Description |
---|---|
XmlMessageSerializer(ProtocolFactory factory) |
Creates serializer for the protocol described by its factory.
|
Modifier and Type | Method | Description |
---|---|---|
Message |
deserialize(javax.xml.transform.Source doc) |
Deserializes (restores) the message from an xml document.
|
void |
serialize(Message message,
javax.xml.transform.Result result) |
Serializes protocol message to XML document.
|
void |
setTransformer(javax.xml.transform.Transformer transformer) |
public XmlMessageSerializer(ProtocolFactory factory)
factory
- protocol factorypublic void serialize(Message message, javax.xml.transform.Result result) throws javax.xml.parsers.ParserConfigurationException, com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
message
- Message to serializeresult
- xml representation of the messagejavax.xml.parsers.ParserConfigurationException
- if failed to create documentcom.genesyslab.platform.commons.protocol.runtime.codec.CodecException
- if some custom type object can't be serializedpublic Message deserialize(javax.xml.transform.Source doc) throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
doc
- xml representation of the messagecom.genesyslab.platform.commons.protocol.runtime.codec.CodecException
- if some custom type object can't be deserializedpublic void setTransformer(javax.xml.transform.Transformer transformer)
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.