Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.protocol
Class ClientChannel.SimpleRegistrationHandler

java.lang.Object
  extended by com.genesyslab.platform.commons.protocol.ClientChannel.SimpleRegistrationHandler
All Implemented Interfaces:
ClientChannel.RegistrationHandler
Enclosing class:
ClientChannel

Deprecated.

@Deprecated
protected abstract class ClientChannel.SimpleRegistrationHandler
extends java.lang.Object
implements ClientChannel.RegistrationHandler

Request-response registration. Registration message passed to constructor. Override isResponseAccepted() to check the message is valid. If message is not valid the channel will be closed and open() will finish with exception. If you need to specify exception message throw the exception directly from isResponseAccepted().

See Also:
ClientChannel.BasicClientHandshakeStep, ClientChannel.setHandshakePhase(ClientHandshakeStep), ClientChannel.onOpen()

Constructor Summary
protected ClientChannel.SimpleRegistrationHandler()
          Deprecated.  
 
Method Summary
abstract  Message getRegistrationMessage()
          Deprecated. Just creates registration handler here.
 boolean handleResponse(Message response)
          Deprecated.  
 boolean isRegistrationComplete()
          Deprecated.  
protected abstract  boolean isResponseAccepted(Message response)
          Deprecated. Checks if message is valid response for registration message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientChannel.SimpleRegistrationHandler

protected ClientChannel.SimpleRegistrationHandler()
Deprecated. 
Method Detail

isResponseAccepted

protected abstract boolean isResponseAccepted(Message response)
                                       throws RegistrationException
Deprecated. 
Checks if message is valid response for registration message. To indicate success just return true from the method. To trigger general (unknown) failure return false, to provide reason (and stack trace) throw exception.

Parameters:
response - response from server
Returns:
true - if message is accepted
Throws:
RegistrationException - if the message is unacceptable.

getRegistrationMessage

public abstract Message getRegistrationMessage()
Deprecated. 
Just creates registration handler here.

Specified by:
getRegistrationMessage in interface ClientChannel.RegistrationHandler
Returns:
registration message

handleResponse

public boolean handleResponse(Message response)
                       throws ProtocolException
Deprecated. 
Specified by:
handleResponse in interface ClientChannel.RegistrationHandler
Throws:
ProtocolException

isRegistrationComplete

public boolean isRegistrationComplete()
Deprecated. 
Specified by:
isRegistrationComplete in interface ClientChannel.RegistrationHandler

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.