|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.net.MailTo
public class MailTo
MailTo URL parser This class parses a mailto scheme URL and then can be queried for the parsed parameters. This implements RFC 2368.
| Field Summary | |
|---|---|
static String |
MAILTO_SCHEME
|
| Method Summary | |
|---|---|
String |
getBody()
Retrieve the body line from the parsed mailto URL. |
String |
getCc()
Retrieve the CC address line from the parsed mailto URL. |
Map<String,String> |
getHeaders()
Retrieve all the parsed email headers from the mailto URL |
String |
getSubject()
Retrieve the subject line from the parsed mailto URL. |
String |
getTo()
Retrieve the To address line from the parsed mailto URL. |
static boolean |
isMailTo(String url)
Test to see if the given string is a mailto URL |
static MailTo |
parse(String url)
Parse and decode a mailto scheme string. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String MAILTO_SCHEME
| Method Detail |
|---|
public static boolean isMailTo(String url)
url - string to be tested
public static MailTo parse(String url)
throws ParseException
url - String containing a mailto URL
ParseException - if the scheme is not a mailto URLpublic String getTo()
public String getCc()
public String getSubject()
public String getBody()
public Map<String,String> getHeaders()
public String toString()
Object
toString in class Object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||