courses.dsv2pvt.messageclasses
Class ClientToClientMsg

java.lang.Object
  extended bycourses.dsv2pvt.messageclasses.Msg
      extended bycourses.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

Constructor Summary
ClientToClientMsg(String recipient)
          Create a message with necessary recipient information.
 
Method Summary
 String getRecipient()
          Returns the username of the recipient.
 void setRecipient(String recipient)
          The the recipient's address.
 
Methods inherited from class courses.dsv2pvt.messageclasses.Msg
getSender, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientToClientMsg

public ClientToClientMsg(String recipient)
Create a message with necessary recipient information.

Parameters:
recipient - the recipient's username.
Method Detail

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.