Platform SDK Java 8.5 API Reference

com.genesyslab.platform.voice.protocol
Class EventMask

java.lang.Object
  extended by com.genesyslab.platform.voice.protocol.EventMask
All Implemented Interfaces:
java.io.Serializable

public class EventMask
extends java.lang.Object
implements java.io.Serializable

EventMask specifies which T-Server events can be transmitted to the application. To check if a certain event can be received from T-Server call isMessageSupported(int messageId) method.

        ...
        EventServerInfo eventServerInfo = (EventServerInfo) message;
        EventMask mask = evt.getCapabilities();
        boolean isSupported = mask.isMessageSupported(EventCallDataChanged.ID);
        
        
Together with RequestSetInputMask the EventMask can narrow the list of messages, sent by T-Server to client application. Mask bits: 1 - event is permitted; 0 - event is forbidden.

See Also:
Serialized Form

Constructor Summary
EventMask()
           
EventMask(byte[] b, int offset)
           
 
Method Summary
 void clear(int nn)
          Clears bit.
 void clearAll()
          Clears all bits.
 boolean equals(java.lang.Object obj)
           
 byte[] getBytes()
           
 int hashCode()
           
 boolean isMessageSupported(int messageId)
          Checks whether the message with specified id is supported.
 void set(int nn)
          Sets bit.
 void setAll()
          Sets all bits = 1.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventMask

public EventMask()

EventMask

public EventMask(byte[] b,
                 int offset)
Method Detail

setAll

public void setAll()
Sets all bits = 1.


clearAll

public void clearAll()
Clears all bits.


set

public void set(int nn)
Sets bit.

Parameters:
nn - Bit number. Valid values [0-511]
Throws:
java.lang.IllegalArgumentException - if input is out of range

clear

public void clear(int nn)
Clears bit.

Parameters:
nn - Bit number. Valid values [0-511]
Throws:
java.lang.IllegalArgumentException - if input is out of range

isMessageSupported

public boolean isMessageSupported(int messageId)
Checks whether the message with specified id is supported.

Parameters:
messageId - Bit number. Valid values [0-511]
Returns:
true if message is supported
Throws:
java.lang.IllegalArgumentException - if input is out of range

getBytes

public byte[] getBytes()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

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.