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() |
processMessage
public void connectionDied(Connection connection, Throwable reason)
connectionDied
in interface MessageHandler
connection
- The connection that died.reason
- Exception explaining why.public boolean doAuth(BasicProtocolHandler handler, AuthDesc auth, String label)
doAuth
in interface BasicProtocolActor
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.public void doDisconnect()
doDisconnect
in interface BasicProtocolActor
public void ensureAuthorized() throws MessageHandlerException
MessageHandlerException
Copyright © 2017. All rights reserved.