|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elkoserver.foundation.actor.Actor
public abstract class Actor
An object representing some entity interacting with this server (whatever server this is) over the net. It sits on top of a Connection. It is both a Deliverer that delivers outgoing messages over the connection and a message acceptor that receives and dispatches incoming messages arriving on the connection.
| Constructor Summary | |
|---|---|
Actor(Connection connection)
Construct a new Actor. |
|
| Method Summary | |
|---|---|
void |
close()
Close this Actor's connection. |
static JSONLiteral |
msgAuth(Referenceable target,
AuthDesc auth,
String label)
Create an 'auth' message. |
static JSONLiteral |
msgAuth(String target,
AuthDesc auth,
String label)
Create an 'auth' message. |
void |
send(JSONLiteral message)
Send a message over this Actor's connection to the entity at the other end. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.elkoserver.foundation.net.MessageHandler |
|---|
connectionDied, processMessage |
| Constructor Detail |
|---|
public Actor(Connection connection)
connection - Connection to communicate with the entity at the
other end.| Method Detail |
|---|
public void close()
public void send(JSONLiteral message)
send in interface Deliverermessage - The message to send.
public static JSONLiteral msgAuth(Referenceable target,
AuthDesc auth,
String label)
target - Object the message is being sent to.auth - Authentication information to use.label - Label to identify the entity seeking authorization.
public static JSONLiteral msgAuth(String target,
AuthDesc auth,
String label)
target - Object the message is being sent to.auth - Authentication information to use.label - Label to identify the entity seeking authorization.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||