Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.connection
Interface MessageStructureHandler

All Known Subinterfaces:
MessagePackager, MessageTransport
All Known Implementing Classes:
com.genesyslab.platform.commons.connection.impl.CommonMessageTransportImpl, LcaUdpHeartbeatInternalProtocolTransportImpl, MessageProtocolInnerPackagerImpl, MessageProtocolTransportImpl, com.genesyslab.platform.commons.protocol.runtime.ProtocolMessagePackagerImpl

public interface MessageStructureHandler

Handler can be shared by multiple threads so it has to be stateless. That's why the state is external and passed in and out of every method.


Nested Class Summary
static interface MessageStructureHandler.StringBytes
           
 
Method Summary
 java.lang.Object onAttribute(java.lang.Object state, java.lang.String attributeId, byte[] value)
           
 java.lang.Object onAttribute(java.lang.Object state, java.lang.String attributeId, int value)
           
 java.lang.Object onAttribute(java.lang.Object state, java.lang.String attributeId, long value)
           
 java.lang.Object onAttribute(java.lang.Object state, java.lang.String attributeId, java.lang.String value)
           
 java.lang.Object onMessageEnd(java.lang.Object state)
           
 java.lang.Object onNewMessage(java.lang.Object state, int messageId)
           
 java.lang.Object onRawAttribute(java.lang.Object state, java.lang.String attributeId, java.lang.Object value)
           
 

Method Detail

onNewMessage

java.lang.Object onNewMessage(java.lang.Object state,
                              int messageId)
                              throws PlatformException
Throws:
PlatformException

onAttribute

java.lang.Object onAttribute(java.lang.Object state,
                             java.lang.String attributeId,
                             java.lang.String value)
                             throws PlatformException
Throws:
PlatformException

onAttribute

java.lang.Object onAttribute(java.lang.Object state,
                             java.lang.String attributeId,
                             int value)
                             throws PlatformException
Throws:
PlatformException

onAttribute

java.lang.Object onAttribute(java.lang.Object state,
                             java.lang.String attributeId,
                             long value)
                             throws PlatformException
Throws:
PlatformException

onAttribute

java.lang.Object onAttribute(java.lang.Object state,
                             java.lang.String attributeId,
                             byte[] value)
                             throws PlatformException
Throws:
PlatformException

onRawAttribute

java.lang.Object onRawAttribute(java.lang.Object state,
                                java.lang.String attributeId,
                                java.lang.Object value)
                                throws PlatformException
Throws:
PlatformException

onMessageEnd

java.lang.Object onMessageEnd(java.lang.Object state)
                              throws PlatformException
Throws:
PlatformException

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.