Platform SDK Java 8.5 API Reference

com.genesyslab.platform.json.serializer
Class PsdkJsonSerializer

java.lang.Object
  extended by com.genesyslab.platform.json.serializer.PsdkJsonSerializer

public class PsdkJsonSerializer
extends java.lang.Object

PsdkJsonSerializer provides message JSON serializers for all Platform SDK protocols.

Author:
mpopel

Method Summary
static PsdkJsonSerializer createBasicChatSerializer()
          Creates PSDK JSON serializer for BasicChat protocol.
static PsdkJsonSerializer createCallbackSerializer()
          Creates PSDK JSON serializer for Callback protocol.
static PsdkJsonSerializer createConfServerSerializer()
          Creates PSDK JSON serializer for ConfServer protocol.
static PsdkJsonSerializer createContactServerSerializer()
          Creates PSDK JSON serializer for ContactServer protocol.
static PsdkJsonSerializer createCustomServerSerializer()
          Creates PSDK JSON serializer for Custom Server protocol.
static PsdkJsonSerializer createEmailSerializer()
          Creates PSDK JSON serializer for Email protocol.
static PsdkJsonSerializer createEspEmailSerializer()
          Creates PSDK JSON serializer for ESPEmail protocol.
static PsdkJsonSerializer createExternalServiceSerializer()
          Creates PSDK JSON serializer for ExternalService protocol.
static PsdkJsonSerializer createFlexChatSerializer()
          Creates PSDK JSON serializer for FlexChat protocol.
static PsdkJsonSerializer createInteractionServerSerializer()
          Creates PSDK JSON serializer for InteractionServer protocol.
static PsdkJsonSerializer createLocalControlAgentSerializer()
          Creates PSDK JSON serializer for LocalControlAgent protocol.
static PsdkJsonSerializer createMessageServerSerializer()
          Creates PSDK JSON serializer for MessageServer protocol.
static PsdkJsonSerializer createOutboundServerSerializer()
          Creates PSDK JSON serializer for OutboundServer protocol.
static PsdkJsonSerializer createRoutingServerSerializer()
          Creates PSDK JSON serializer for Routing Server protocol.
static PsdkJsonSerializer createSolutionControlServerSerializer()
          Creates PSDK JSON serializer for SolutionControlServer protocol.
static PsdkJsonSerializer createStatServerSerializer()
          Creates PSDK JSON serializer for StatServer protocol.
static PsdkJsonSerializer createTServerSerializer()
          Creates PSDK JSON serializer for TServer protocol.
 Message deserialize(java.lang.String json)
          Deserializes JSON string into Platform SDK message.
<T> T
deserialize(java.lang.String json, java.lang.Class<T> classType)
          Deserializes JSON string into Platform SDK message or its attribute.
 Message deserialize(java.lang.String json, java.lang.String messageName)
          Deserializes JSON string, that doesn't contain messageName, into Platform SDK message.
 java.lang.String serialize(java.lang.Object value)
          Serializes Platform SDK message or its attribute to JSON string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

serialize

public java.lang.String serialize(java.lang.Object value)
                           throws PsdkSerializationException
Serializes Platform SDK message or its attribute to JSON string

Parameters:
value - Platform SDK message.
Throws:
PsdkSerializationException

deserialize

public Message deserialize(java.lang.String json)
                    throws PsdkSerializationException
Deserializes JSON string into Platform SDK message.

Parameters:
json - representation of PSDK message.
Throws:
PsdkSerializationException - if any serialization problem occurs. if it can not be deserialized.

deserialize

public Message deserialize(java.lang.String json,
                           java.lang.String messageName)
                    throws PsdkSerializationException
Deserializes JSON string, that doesn't contain messageName, into Platform SDK message.

Parameters:
json - representation of PSDK message in JSON format.
messageName - result type.
Throws:
PsdkSerializationException - if any serialization problem occurs.
java.lang.IllegalArgumentException - if message name is unknown for the serializer. it can not be deserialized.

deserialize

public <T> T deserialize(java.lang.String json,
                         java.lang.Class<T> classType)
              throws PsdkSerializationException
Deserializes JSON string into Platform SDK message or its attribute.

Parameters:
json - representation of PSDK message or structure in JSON format.
classType - result type.
Throws:
PsdkSerializationException

createBasicChatSerializer

public static PsdkJsonSerializer createBasicChatSerializer()
Creates PSDK JSON serializer for BasicChat protocol.

Returns:
PSDK JSON serializer for BasicChat protocol.

createCallbackSerializer

public static PsdkJsonSerializer createCallbackSerializer()
Creates PSDK JSON serializer for Callback protocol.

Returns:
PSDK JSON serializer for Callback protocol.

createConfServerSerializer

public static PsdkJsonSerializer createConfServerSerializer()
Creates PSDK JSON serializer for ConfServer protocol.

Returns:
PSDK JSON serializer for ConfServer protocol.

createContactServerSerializer

public static PsdkJsonSerializer createContactServerSerializer()
Creates PSDK JSON serializer for ContactServer protocol.

Returns:
PSDK JSON serializer for ContactServer protocol.

createCustomServerSerializer

public static PsdkJsonSerializer createCustomServerSerializer()
Creates PSDK JSON serializer for Custom Server protocol.

Returns:
PSDK JSON serializer for Custom Server protocol.

createEmailSerializer

public static PsdkJsonSerializer createEmailSerializer()
Creates PSDK JSON serializer for Email protocol.

Returns:
PSDK JSON serializer for Email protocol.

createEspEmailSerializer

public static PsdkJsonSerializer createEspEmailSerializer()
Creates PSDK JSON serializer for ESPEmail protocol.

Returns:
PSDK JSON serializer for ESPEmail protocol.

createExternalServiceSerializer

public static PsdkJsonSerializer createExternalServiceSerializer()
Creates PSDK JSON serializer for ExternalService protocol.

Returns:
PSDK JSON serializer for ExternalService protocol.

createFlexChatSerializer

public static PsdkJsonSerializer createFlexChatSerializer()
Creates PSDK JSON serializer for FlexChat protocol.

Returns:
PSDK JSON serializer for FlexChat protocol.

createInteractionServerSerializer

public static PsdkJsonSerializer createInteractionServerSerializer()
Creates PSDK JSON serializer for InteractionServer protocol.

Returns:
PSDK JSON serializer for InteractionServer protocol.

createLocalControlAgentSerializer

public static PsdkJsonSerializer createLocalControlAgentSerializer()
Creates PSDK JSON serializer for LocalControlAgent protocol.

Returns:
PSDK JSON serializer for LocalControlAgent protocol.

createMessageServerSerializer

public static PsdkJsonSerializer createMessageServerSerializer()
Creates PSDK JSON serializer for MessageServer protocol.

Returns:
PSDK JSON serializer for MessageServer protocol.

createOutboundServerSerializer

public static PsdkJsonSerializer createOutboundServerSerializer()
Creates PSDK JSON serializer for OutboundServer protocol.

Returns:
PSDK JSON serializer for OutboundServer protocol.

createSolutionControlServerSerializer

public static PsdkJsonSerializer createSolutionControlServerSerializer()
Creates PSDK JSON serializer for SolutionControlServer protocol.

Returns:
PSDK JSON serializer for SolutionControlServer protocol.

createStatServerSerializer

public static PsdkJsonSerializer createStatServerSerializer()
Creates PSDK JSON serializer for StatServer protocol.

Returns:
PSDK JSON serializer for StatServer protocol.

createTServerSerializer

public static PsdkJsonSerializer createTServerSerializer()
Creates PSDK JSON serializer for TServer protocol.

Returns:
PSDK JSON serializer for TServer protocol.

createRoutingServerSerializer

public static PsdkJsonSerializer createRoutingServerSerializer()
Creates PSDK JSON serializer for Routing Server protocol.

Returns:
PSDK JSON serializer for Routing Server protocol.

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.