|
Platform SDK Java 8.5 API Reference | |||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
Converter | |
InteractionAttributes | |
MCRInteractionsResolver | |
OpenMediaAttributesBinding | Class contains functionality for marshaling/unmarshaling data between key value collection and appropriate object of predefined class. |
OpenMediaAttributesFactory | |
WorkbinStatisticDetails | |
WorkbinType | |
WorkbinTypeDetails |
Exception Summary | |
---|---|
OpenMediaAttributesBinding.KVBindingException |
This package contains the openmediaattributes protocol classes that your applications
can use to communicate with Interaction Server.
Example of marshling/unmarshaling a message to/from a kvlist:
InteractionAttributes message = new InteractionAttributes();
message.setInteractionId("123");
// Example of marshaling a message to kvlist
KeyValueCollection kv = OpenMediaAttributesBinding.marshal(message);
// Example of unmarshaling a kvilst to the message object
// if
kv
isn't null then result1
won't be null
InteractionAttributes result1
= (InteractionAttributes) OpenMediaAttributesBinding.unmarshal("InteractionAttributes", kv);
// ... process result
// Example of unmarshaling a kvilst to a apropriate message object (autoresolving)
// if kv
isn't null and kv
contains 'NumberOfInteractions' then result2
type will be WorkbinStatisticDetails
// else if kv
isn't null and kv
contains 'WorkbinType' then result2
type will be WorkbinTypeDetails
// else if kv
isn't null and kv
contains 'InteractionId' then result2
type will be InteractionAttributes
// else null will be returned
Object result2 = OpenMediaAttributesBinding.unmarshal(kv);
if (result2 instanceof InteractionAttributes) {
InteractionAttributes result = (InteractionAttributes)result2;
// ... process result
}
// Example of marshaling using OpenMediaAttributesFactory
OpenMediaAttributesFactory factory = new OpenMediaAttributesFactory();
KeyValueCollection kvlist = factory.marshal(message);
// Example of unmarshaling using OpenMediaAttributesFactory
InteractionAttributes message2 = (InteractionAttributes) factory.unmarshal(kvlist);
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |