|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated protected static interface ClientChannel.RegistrationHandler
Mostly any channel will register client's connection within
server by sending one or more registration requests. It can be
accomplished by implementing this interface.
The channel will call your RegistrationHandler
when
connection is opened.
Channel will call getRegistrationMessage()
first
and send this message to server. Then the channel will
waitResponse for an answer from server and while
isRegistrationComplete()
returns false
the process is repeated. So, in complex registration scenarios
your RegistrationHandler probably has to be "stateful" and
handle order of messages supplied to channel.
Usually there is only one registration message, so you can use
SimpleRegistrationHandler to perform such simple registration.
ClientChannel.ClientHandshakeStep
,
ClientChannel.BasicClientHandshakeStep
Method Summary | |
---|---|
Message |
getRegistrationMessage()
Deprecated. |
boolean |
handleResponse(Message response)
Deprecated. |
boolean |
isRegistrationComplete()
Deprecated. |
Method Detail |
---|
Message getRegistrationMessage()
boolean handleResponse(Message response) throws ProtocolException
ProtocolException
boolean isRegistrationComplete()
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |