|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectks.common.ArgumentList
ks.common.message.Message
Messages are sent from the server to a client in response to a Command.
Each message has the following attributes:
Constructor Summary | |
Message(java.lang.String toFromUser)
Create a message within the Protocol.globalScope scope to
the given user from the given user. |
Method Summary | |
java.lang.String |
getFromUser()
Return the user for this message. |
java.lang.String |
getScope()
Return the scope for this message. |
java.lang.String |
getTargetUser()
Return the user to whom this message is intended. |
java.lang.String |
getUser()
Return the user for this message. |
void |
setFromUser(java.lang.String newUser)
Change the user from whom this message is being sent. |
void |
setScope(java.lang.String newScope)
Change the scope of this message. |
void |
setTargetUser(java.lang.String newUser)
Change the user to whom this message is intended. |
java.lang.String |
toString()
Present readable format for command. |
Methods inherited from class ks.common.ArgumentList |
addArgMulti, addArgMulti, addArgMulti, addArgMulti, addArgMulti, addArgMulti, addArgMulti, addArgMulti, clearArg, clearArg, clearArgMulti, clearArgMulti, getArg, getArg, getArgMulti, getArgMulti, multiArgs, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, setArg, setArg, singleArgs |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Message(java.lang.String toFromUser)
Protocol.globalScope
scope to
the given user from the given user.
This is the most commonly used Message constructor.
toFromUser
- StringMethod Detail |
public java.lang.String getFromUser()
public java.lang.String getScope()
public java.lang.String getTargetUser()
public java.lang.String getUser()
public void setFromUser(java.lang.String newUser)
newUser
- Stringpublic void setScope(java.lang.String newScope)
newScope
- Stringpublic void setTargetUser(java.lang.String newUser)
newUser
- Stringpublic java.lang.String toString()
toString
in class ArgumentList
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |