public interface BasicProtocolActor extends Deliverer
BasicProtocolHandler
message handler implementation, or handlers derived
from it. The BasicProtocolHandler
requires the methods defined in
this interface to be available to it as callbacks on the Actor for whom it
is providing services.Modifier and Type | Method and Description |
---|---|
boolean |
doAuth(BasicProtocolHandler handler,
AuthDesc auth,
String label)
Authorize (or refuse authorization for) a connection for this actor.
|
void |
doDisconnect()
Disconnect this actor.
|
boolean doAuth(BasicProtocolHandler handler, AuthDesc auth, String label)
handler
- Handler requesting the authorization.auth
- Authorization information from the authorization request
message, or null if no authorization information was provided.label
- Label (e.g., displayable user name) string from the
authorization request message, or "<anonymous>" if no value was
specified.void doDisconnect()
Copyright © 2017. All rights reserved.