com.objectxp.msg
Class Recipient

java.lang.Object
  extended bycom.objectxp.msg.Recipient

public class Recipient
extends java.lang.Object

This class represents a message recipient. The recipient has a specific type and an address.

See Also:
SmtpService

Field Summary
static int RT_BCC
          Recipient type "BCC:"
static int RT_CC
          Recipient type "CC:"
static int RT_TO
          Recipient type "TO:"
 
Constructor Summary
Recipient(java.lang.String address)
          Create a new Recipient.
Recipient(java.lang.String address, int type)
          Create a new Recipient.
 
Method Summary
 java.lang.String getAddress()
          Get the recipients address.
 int getType()
          Get the recipient type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RT_TO

public static final int RT_TO
Recipient type "TO:"

See Also:
Constant Field Values

RT_CC

public static final int RT_CC
Recipient type "CC:"

See Also:
Constant Field Values

RT_BCC

public static final int RT_BCC
Recipient type "BCC:"

See Also:
Constant Field Values
Constructor Detail

Recipient

public Recipient(java.lang.String address,
                 int type)
Create a new Recipient.

Parameters:
address - the recipient's address
type - recipient type (one of the RT_ constants).

Recipient

public Recipient(java.lang.String address)
Create a new Recipient. The recipient type is set to "RT_TO".

Parameters:
address - the recipient's address
Method Detail

getAddress

public java.lang.String getAddress()
Get the recipients address.

Returns:
the adress

getType

public int getType()
Get the recipient type.

Returns:
the recipient type (RT_..)


object XP, Inc. © 2000-2007. All rights reserved object XP