Platform SDK Java 8.5 API Reference

com.genesyslab.platform.configuration.protocol.runtime.channel
Class ConfSerializer

java.lang.Object
  extended by com.genesyslab.platform.configuration.protocol.runtime.channel.ConfSerializer
All Implemented Interfaces:
com.genesyslab.platform.commons.connection.impl.EncodingSupport, com.genesyslab.platform.commons.protocol.runtime.codec.ReverseDirectionCodecSupport
Direct Known Subclasses:
ConfSerializerV6, ConfSerializerV7

public abstract class ConfSerializer
extends java.lang.Object
implements com.genesyslab.platform.commons.connection.impl.EncodingSupport, com.genesyslab.platform.commons.protocol.runtime.codec.ReverseDirectionCodecSupport

Base serialization for logic for 'V7' and 'V6' configuration data packing formats.

See Also:
ConfSerializerV7, ConfSerializerV6

Field Summary
protected  AesUtil aes
           
protected  CfgMetadata metadata
           
protected static java.lang.String PASSWORD
           
protected  boolean reversed
           
protected  java.lang.String stringsEncoding
           
 
Fields inherited from interface com.genesyslab.platform.commons.connection.impl.EncodingSupport
DEFAULT_CHARSET, DEFAULT_ENCODING, UTF8_CHARSET, UTF8_ENCODING
 
Constructor Summary
protected ConfSerializer(CfgMetadata metadata, AesUtil aes)
           
 
Method Summary
protected  java.lang.Object createElement(CfgDescriptionAttribute attr, TokenReader tokenReader)
           
protected  java.lang.Object createElement(CfgDescriptionAttribute attributeDescription, TokenReader tokenReader, boolean isAddedObjlistElement)
           
protected  java.lang.String createTruncatedLogTrace(java.lang.String strData)
           
abstract  ConfDataCollection<? extends ConfObjectBase> deserialize(CfgDescriptionClass typeDescription, java.lang.String cfgStr)
           
protected  ConfIntegerCollection deserializeIntList(CfgDescriptionAttributeReference attributeDescription, TokenReader tokenReader)
           
protected  KeyValueCollection deserializeKVList(java.lang.String name, TokenReader tokenReader)
           
protected  KeyValuePair deserializeKVListPair(TokenReader tokenReader)
           
protected  KeyValuePair deserializeKVPair(TokenReader tokenReader)
           
protected  ConfStructureCollection deserializeObjList(CfgDescriptionAttributeReferenceClass attr, TokenReader tokenReader)
           
protected  ConfObjectBase deserializePObject(CfgDescriptionAttributeReference attr, TokenReader tokenReader)
           
protected  ConfObjectBase deserializePObject(CfgDescriptionAttributeReference attr, TokenReader tokenReader, boolean isAddedObjlistElement)
           
protected  java.lang.Object deserializePrimitive(CfgDescriptionAttribute attributeDescription, TokenReader tokenReader, boolean isAddedObjlistElement)
           
protected  ConfStringCollection deserializeStrList(CfgDescriptionAttributeReference attr, TokenReader tokenReader)
           
protected  java.lang.String getDecrypted(java.lang.String val)
           
protected  java.lang.String getEncrypted(java.lang.String val)
           
 CfgMetadata getMetadata()
           
 void reverse()
           
abstract  java.lang.String serialize(ConfDataCollection<? extends ConfObjectBase> objects)
           
abstract  java.lang.String serialize(ConfObjectBase object)
           
protected abstract  void serializeIntList(CfgDescriptionAttributeReference attr, ConfIntegerCollection value, java.io.StringWriter cfgWriter)
           
protected abstract  void serializeKVList(CfgDescriptionAttributeReference attr, KeyValueCollection value, java.io.StringWriter cfgWriter)
           
protected abstract  void serializeObjList(CfgDescriptionAttributeReference attr, ConfStructureCollection value, java.io.StringWriter cfgWriter)
           
protected abstract  void serializePObject(CfgDescriptionAttributeReference attr, ConfObjectBase value, java.io.StringWriter cfgWriter)
           
protected abstract  void serializePrimitive(CfgDescriptionAttribute attr, char delimiter, java.lang.Object value, java.io.StringWriter cfgWriter)
           
 void setStringAttributesEncoding(java.lang.String strEncoding)
           
protected abstract  void writeCfgString(CfgDescriptionAttribute attr, java.lang.Object value, java.io.StringWriter cfgWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PASSWORD

protected static final java.lang.String PASSWORD
See Also:
Constant Field Values

aes

protected AesUtil aes

metadata

protected CfgMetadata metadata

stringsEncoding

protected java.lang.String stringsEncoding

reversed

protected boolean reversed
Constructor Detail

ConfSerializer

protected ConfSerializer(CfgMetadata metadata,
                         AesUtil aes)
Method Detail

reverse

public void reverse()
Specified by:
reverse in interface com.genesyslab.platform.commons.protocol.runtime.codec.ReverseDirectionCodecSupport

getMetadata

public CfgMetadata getMetadata()

setStringAttributesEncoding

public void setStringAttributesEncoding(java.lang.String strEncoding)
Specified by:
setStringAttributesEncoding in interface com.genesyslab.platform.commons.connection.impl.EncodingSupport

deserialize

public abstract ConfDataCollection<? extends ConfObjectBase> deserialize(CfgDescriptionClass typeDescription,
                                                                         java.lang.String cfgStr)
                                                                  throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serialize

public abstract java.lang.String serialize(ConfObjectBase object)
                                    throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serialize

public abstract java.lang.String serialize(ConfDataCollection<? extends ConfObjectBase> objects)
                                    throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializeKVPair

protected KeyValuePair deserializeKVPair(TokenReader tokenReader)
                                  throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializeKVListPair

protected KeyValuePair deserializeKVListPair(TokenReader tokenReader)
                                      throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

createElement

protected java.lang.Object createElement(CfgDescriptionAttribute attr,
                                         TokenReader tokenReader)
                                  throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

createElement

protected java.lang.Object createElement(CfgDescriptionAttribute attributeDescription,
                                         TokenReader tokenReader,
                                         boolean isAddedObjlistElement)
                                  throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializePrimitive

protected java.lang.Object deserializePrimitive(CfgDescriptionAttribute attributeDescription,
                                                TokenReader tokenReader,
                                                boolean isAddedObjlistElement)
                                         throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializeIntList

protected ConfIntegerCollection deserializeIntList(CfgDescriptionAttributeReference attributeDescription,
                                                   TokenReader tokenReader)
                                            throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializeObjList

protected ConfStructureCollection deserializeObjList(CfgDescriptionAttributeReferenceClass attr,
                                                     TokenReader tokenReader)
                                              throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializePObject

protected ConfObjectBase deserializePObject(CfgDescriptionAttributeReference attr,
                                            TokenReader tokenReader)
                                     throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializePObject

protected ConfObjectBase deserializePObject(CfgDescriptionAttributeReference attr,
                                            TokenReader tokenReader,
                                            boolean isAddedObjlistElement)
                                     throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializeKVList

protected KeyValueCollection deserializeKVList(java.lang.String name,
                                               TokenReader tokenReader)
                                        throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

deserializeStrList

protected ConfStringCollection deserializeStrList(CfgDescriptionAttributeReference attr,
                                                  TokenReader tokenReader)

serializeKVList

protected abstract void serializeKVList(CfgDescriptionAttributeReference attr,
                                        KeyValueCollection value,
                                        java.io.StringWriter cfgWriter)
                                 throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serializeIntList

protected abstract void serializeIntList(CfgDescriptionAttributeReference attr,
                                         ConfIntegerCollection value,
                                         java.io.StringWriter cfgWriter)
                                  throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serializeObjList

protected abstract void serializeObjList(CfgDescriptionAttributeReference attr,
                                         ConfStructureCollection value,
                                         java.io.StringWriter cfgWriter)
                                  throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serializePObject

protected abstract void serializePObject(CfgDescriptionAttributeReference attr,
                                         ConfObjectBase value,
                                         java.io.StringWriter cfgWriter)
                                  throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

serializePrimitive

protected abstract void serializePrimitive(CfgDescriptionAttribute attr,
                                           char delimiter,
                                           java.lang.Object value,
                                           java.io.StringWriter cfgWriter)
                                    throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

writeCfgString

protected abstract void writeCfgString(CfgDescriptionAttribute attr,
                                       java.lang.Object value,
                                       java.io.StringWriter cfgWriter)
                                throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

getEncrypted

protected java.lang.String getEncrypted(java.lang.String val)
                                 throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

getDecrypted

protected java.lang.String getDecrypted(java.lang.String val)
                                 throws com.genesyslab.platform.commons.protocol.runtime.codec.CodecException
Throws:
com.genesyslab.platform.commons.protocol.runtime.codec.CodecException

createTruncatedLogTrace

protected java.lang.String createTruncatedLogTrace(java.lang.String strData)

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.