courses.dsv2pvt.messageclasses
Class ClientToClientMsg
java.lang.Object
courses.dsv2pvt.messageclasses.Msg
courses.dsv2pvt.messageclasses.ClientToClientMsg
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- Mail, Talk
- public abstract class ClientToClientMsg
- extends Msg
Abstract superclass of all messages that travel from one client
to another. It adds the necessary methods for dealing with the
recipient address.
- See Also:
- Serialized Form
ClientToClientMsg
public ClientToClientMsg(String recipient)
- Create a message with necessary recipient information.
- Parameters:
recipient
- the recipient's username.
getRecipient
public String getRecipient()
- Returns the username of the recipient.
setRecipient
public void setRecipient(String recipient)
- The the recipient's address.
- Parameters:
recipient
- the recipient's username.