public class InternalActor extends RoutingActor implements BasicProtocolActor
| Modifier and Type | Method and Description |
|---|---|
void |
connectionDied(Connection connection,
Throwable reason)
Handle loss of connection from the actor.
|
boolean |
doAuth(BasicProtocolHandler handler,
AuthDesc auth,
String label)
Do the actual work of authorizing an actor.
|
void |
doDisconnect()
Do the actual work of disconnecting an actor.
|
void |
ensureAuthorized()
Guard function to guarantee that an operation is being attempted by an
actor who is authorized to do it.
|
String |
toString() |
processMessagepublic void connectionDied(Connection connection, Throwable reason)
connectionDied in interface MessageHandlerconnection - The connection that died.reason - Exception explaining why.public boolean doAuth(BasicProtocolHandler handler, AuthDesc auth, String label)
doAuth in interface BasicProtocolActorhandler - 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.public void doDisconnect()
doDisconnect in interface BasicProtocolActorpublic void ensureAuthorized()
throws MessageHandlerException
MessageHandlerExceptionCopyright © 2017. All rights reserved.