wtanaka.praya.msn
Class MsnRecipient

java.lang.Object
  |
  +--wtanaka.praya.Recipient
        |
        +--wtanaka.praya.ResolvedRecipient
              |
              +--wtanaka.praya.msn.MsnRecipient
All Implemented Interfaces:
java.io.Serializable

public class MsnRecipient
extends ResolvedRecipient
implements java.io.Serializable

Recipient subclass for a msn messenger user.

Return to Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2002/01/14 00:09:47 $
Author:
$Author: wtanaka $
See Also:
Serialized Form

Field Summary
private  java.lang.String address
           
private  java.util.Hashtable m_fields
           
 
Fields inherited from class wtanaka.praya.Recipient
m_protocol, TYPE_BOOLEAN, TYPE_STRING
 
Constructor Summary
MsnRecipient(MsnClient protocol, java.lang.String address)
           
 
Method Summary
 java.lang.String getAddress()
           
 java.lang.String getDescription()
          A short string which describes where something addressed to this recipient will go, assuming that the caller is aware of the context of the recipient.
 java.util.Hashtable getFieldNames()
          Returns an table of names->field contents of fields for insertion into a field enabled editor.
 java.lang.String getFullDescription()
          A string which describes where something addressed to this recipient will go.
 java.lang.String getTargetID()
          Deprecated. use getAddress instead
 void sendReply(java.lang.Object o)
          Sends reply to this recipient (as described with getDescription()).
 java.lang.String toString()
           
 Recipient withNewFields(java.util.Hashtable newFields)
          Returns a new recipient with the given fields.
 
Methods inherited from class wtanaka.praya.ResolvedRecipient
resolve
 
Methods inherited from class wtanaka.praya.Recipient
equals, getProtocol, hashCode
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

address

private java.lang.String address

m_fields

private java.util.Hashtable m_fields
Constructor Detail

MsnRecipient

public MsnRecipient(MsnClient protocol,
                    java.lang.String address)
Method Detail

sendReply

public void sendReply(java.lang.Object o)
               throws NotSentException
Description copied from class: ResolvedRecipient
Sends reply to this recipient (as described with getDescription()).
Overrides:
sendReply in class ResolvedRecipient
Throws:
NotSentException - if the message was not sent for some reason.

getDescription

public java.lang.String getDescription()
Description copied from class: Recipient
A short string which describes where something addressed to this recipient will go, assuming that the caller is aware of the context of the recipient. For example, this might reutrn "wtanaka@mili.eu.org" or "#dred"
Overrides:
getDescription in class Recipient

getFullDescription

public java.lang.String getFullDescription()
Description copied from class: Recipient
A string which describes where something addressed to this recipient will go. For example, this might reutrn "email to wtanaka@mili.eu.org" or "irc #dred"
Overrides:
getFullDescription in class Recipient

getFieldNames

public java.util.Hashtable getFieldNames()
Description copied from class: Recipient
Returns an table of names->field contents of fields for insertion into a field enabled editor. For instance, an email might have: "From", "To->wtanaka@mili.eu.org", "Cc", "Bcc", etc. This is a map from string to FilledField
Overrides:
getFieldNames in class Recipient

withNewFields

public Recipient withNewFields(java.util.Hashtable newFields)
Description copied from class: Recipient
Returns a new recipient with the given fields.
Overrides:
withNewFields in class Recipient
Following copied from class: wtanaka.praya.Recipient
Parameters:
newFields - this is the map from string to FilledField

getTargetID

public java.lang.String getTargetID()
Deprecated. use getAddress instead


getAddress

public java.lang.String getAddress()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object