|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.commons.protocol.ClientChannel.SimpleRegistrationHandler
@Deprecated protected abstract class ClientChannel.SimpleRegistrationHandler
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().
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 |
---|
protected ClientChannel.SimpleRegistrationHandler()
Method Detail |
---|
protected abstract boolean isResponseAccepted(Message response) throws RegistrationException
response
- response from server
RegistrationException
- if the message is unacceptable.public abstract Message getRegistrationMessage()
getRegistrationMessage
in interface ClientChannel.RegistrationHandler
public boolean handleResponse(Message response) throws ProtocolException
handleResponse
in interface ClientChannel.RegistrationHandler
ProtocolException
public boolean isRegistrationComplete()
isRegistrationComplete
in interface ClientChannel.RegistrationHandler
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |