ConfigurationSupport
public class MailPropertiesCodec extends XmlKeyValueCodec
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
FLD_ATTACHMENTS |
DEFAULT_CHARSET, DEFAULT_ENCODING, UTF8_CHARSET, UTF8_ENCODING
VALUE_TYPE_BINARY, VALUE_TYPE_INT, VALUE_TYPE_KVLIST, VALUE_TYPE_UTF
Constructor | Description |
---|---|
MailPropertiesCodec() |
Modifier and Type | Method | Description |
---|---|---|
void |
appendLogValue(java.lang.StringBuffer buf,
java.lang.Object customTypeObject,
boolean truncate,
boolean hide) |
Appends value of the custom-type object to the buffer.
|
java.lang.Object |
decodeFromXml(javax.xml.transform.Source attributeElement,
AttributeDescription attributeDescription) |
Deserializes custom-type object from xml representation.
|
java.lang.Object |
encodeForConnection(java.lang.Object customTypeObject,
java.lang.String id,
MessageTransport transport,
java.lang.Object transportState) |
Serializes custom-type object to the form, that can be accepted
by connection.
|
void |
encodeToXml(java.lang.Object customTypeObject,
javax.xml.transform.Result attributeElement) |
Serializes custom-type object to xml.
|
protected java.lang.Object |
getComplexAttributeValue() |
|
protected java.lang.String |
getNodeName(int depth,
java.lang.String key,
java.lang.Object value) |
|
protected void |
setAdditionalAttributes(MessageTransport transport,
java.lang.Object transportState,
java.lang.String key,
int depth) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, getConfiguration, getKeyText, getList, getLogType, getNS, getTypeText, needsProcessing, onComplexAttribute, onComplexEnd, setMessage, setProtocolData, setStringAttributesEncoding
public static final java.lang.String FLD_ATTACHMENTS
protected java.lang.String getNodeName(int depth, java.lang.String key, java.lang.Object value)
getNodeName
in class XmlKeyValueCodec
protected void setAdditionalAttributes(MessageTransport transport, java.lang.Object transportState, java.lang.String key, int depth) throws PlatformException
setAdditionalAttributes
in class XmlKeyValueCodec
PlatformException
public java.lang.Object encodeForConnection(java.lang.Object customTypeObject, java.lang.String id, MessageTransport transport, java.lang.Object transportState) throws PlatformException
com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
encodeForConnection
in class XmlKeyValueCodec
customTypeObject
- object to serializeid
- attribute idtransport
- message transporttransportState
- state of the transportPlatformException
- if some problems occurredpublic void appendLogValue(java.lang.StringBuffer buf, java.lang.Object customTypeObject, boolean truncate, boolean hide) throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
appendLogValue
in class XmlKeyValueCodec
buf
- buffer to append datacustomTypeObject
- value of custom-type objecttruncate
- whether long value should be truncatedhide
- whether value should be hiddencom.genesyslab.platform.commons.protocol.runtime.codec.CodecException
- if some codec problems occurredpublic java.lang.Object decodeFromXml(javax.xml.transform.Source attributeElement, AttributeDescription attributeDescription) throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
decodeFromXml
in class XmlKeyValueCodec
attributeElement
- xml attribute to restore the data fromattributeDescription
- attribute description objectcom.genesyslab.platform.commons.protocol.runtime.codec.CodecException
- if there is problems with xml datapublic void encodeToXml(java.lang.Object customTypeObject, javax.xml.transform.Result attributeElement) throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
encodeToXml
in class XmlKeyValueCodec
customTypeObject
- object to serializeattributeElement
- xml attribute to store the data incom.genesyslab.platform.commons.protocol.runtime.codec.CodecException
- if some codec problems occurredprotected java.lang.Object getComplexAttributeValue()
getComplexAttributeValue
in class XmlKeyValueCodec
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.