com.genesyslab.platform.commons.protocol.runtime.codec.CustomPackager
, com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
, com.genesyslab.platform.commons.protocol.runtime.codec.PackagerSuppressible
public class XmlDocumentCodecV6 extends XmlDocumentCodec implements com.genesyslab.platform.commons.protocol.runtime.codec.CustomPackager, com.genesyslab.platform.commons.protocol.runtime.codec.PackagerSuppressible
Modifier and Type | Class | Description |
---|---|---|
static interface |
XmlDocumentCodecV6.ObjectSerializerStorageV6 |
BRIEF, CONF_ACL, CONF_ID, CONF_LOCALE, CONF_OBJ_ATTR_ID, confObject, DELTA, DELTA_INDEX, message, OBJ_TYPE_ATTR_ID, objectType, SCHEMA_INFO_ATTR_ID, serializer, XML
Constructor | Description |
---|---|
XmlDocumentCodecV6() |
Modifier and Type | Method | Description |
---|---|---|
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.
|
java.lang.String |
getNS() |
Returns Xml namespace of custom type or null
if namespace is default for protocol.
|
boolean |
isPackagerSuppressed() |
|
void |
onAttribute(java.lang.String id,
java.lang.Object value) |
|
void |
onMessageEnd() |
|
void |
onMessageStart(Message message) |
|
void |
setProtocolData(java.lang.Object protocolData) |
Sets additional protocol specific data for this codec.
|
appendLogValue, decodeFromXml, encodeToXml, getLogType, setMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendLogValue, asDocument, asInt, decodeFromXml, encodeToXml, getLogType, setMessage
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 interface com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
customTypeObject
- object to serializeid
- attribute idtransport
- message transporttransportState
- state of the transportPlatformException
- if some problems occurredpublic java.lang.String getNS()
com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
getNS
in interface com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
public void setProtocolData(java.lang.Object protocolData)
com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
It is highly recommended to implement the protocolData object
as set of interfaces that in turn provide access to codec specific
data. Do not use protocolData as an object for a single codec,
since it will be impossible to extend such object.
Wrong: CodecData data = (CodecData) protocolData;
Right: CodecData data =
((CodecDataHolder) protocolData).getCodecData();
setProtocolData
in interface com.genesyslab.platform.commons.protocol.runtime.codec.CustomTypeCodec
protocolData
- protocol specific datapublic boolean isPackagerSuppressed()
isPackagerSuppressed
in interface com.genesyslab.platform.commons.protocol.runtime.codec.PackagerSuppressible
public void onMessageStart(Message message)
onMessageStart
in interface com.genesyslab.platform.commons.protocol.runtime.codec.CustomPackager
public void onAttribute(java.lang.String id, java.lang.Object value) throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
onAttribute
in interface com.genesyslab.platform.commons.protocol.runtime.codec.CustomPackager
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
public void onMessageEnd() throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
onMessageEnd
in interface com.genesyslab.platform.commons.protocol.runtime.codec.CustomPackager
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.