|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elkoserver.foundation.actor.Actor
org.elkoserver.foundation.actor.RoutingActor
org.elkoserver.server.context.InternalActor
public class InternalActor
Actor for an internal connection to a context server from within the server farm. Such connnections may send messages to any addressable object but do not have associated users and are not placed into any context.
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.elkoserver.foundation.actor.RoutingActor |
|---|
processMessage |
| Methods inherited from class org.elkoserver.foundation.actor.Actor |
|---|
close, msgAuth, msgAuth, send |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.elkoserver.foundation.json.Deliverer |
|---|
send |
| Method Detail |
|---|
public 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 BasicProtocolActor
public void ensureAuthorized()
throws MessageHandlerException
MessageHandlerExceptionpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||