org.jtheque.utils
Class DesktopMail

java.lang.Object
  extended by org.jtheque.utils.DesktopMail

public final class DesktopMail
extends Object

A desktop mail. It seems a mail to display on the default mailer.

Author:
Baptiste Wicht

Constructor Summary
DesktopMail()
           
 
Method Summary
 String getBody()
          Return the body of the mail.
 String getSubject()
          Return the subject of the mail.
 String getTo()
          Return the to address.
 URI getURI()
          Return the URI for this mail.
 void setBody(String body)
          Set the body of the mail.
 void setSubject(String subject)
          Set the subject of the mail.
 void setTo(String to)
          Set the to address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesktopMail

public DesktopMail()
Method Detail

getURI

public URI getURI()
           throws URISyntaxException
Return the URI for this mail.

Returns:
The URI.
Throws:
URISyntaxException - When an errors occurs during the URI construction.

getBody

public String getBody()
Return the body of the mail.

Returns:
The body of the mail.

setBody

public void setBody(String body)
Set the body of the mail.

Parameters:
body - The body of the mail.

getSubject

public String getSubject()
Return the subject of the mail.

Returns:
The subject

setSubject

public void setSubject(String subject)
Set the subject of the mail.

Parameters:
subject - The new subject to set

getTo

public String getTo()
Return the to address.

Returns:
The to address.

setTo

public void setTo(String to)
Set the to address.

Parameters:
to - The to address.


Copyright © 2010 JTheque. All Rights Reserved.