|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.vfs.Path
com.caucho.vfs.MailtoPath
public class MailtoPath
The mailto: scheme sends mail using the SMTP protocol.
Attributes set headers. Headers can be set as long as no data
has been flushed.
WriteStream os = Vfs.openWrite("mailto:nobody@foo.com");
os.setAttribute("subject", "Reminder message");
os.println("This is just a simple reminder.");
os.close();
The attributes set SMTP headers:
You can also set attributes in the URL as query parameters.
Vfs.openWrite("mailto:nobody@foo.com?subject=dinner");
| Field Summary | |
|---|---|
protected java.lang.String |
url
|
| Fields inherited from class com.caucho.vfs.Path |
|---|
_pathSeparatorChar, _schemeMap, _separatorChar, L |
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Gets the value of the RFC822 message headers. |
java.lang.String |
getPath()
The path looks like "mailto:user@host.com" |
java.lang.String |
getScheme()
The scheme is "mailto:" |
java.lang.String |
getURL()
The URL looks like "mailto:user@host.com" |
StreamImpl |
openWriteImpl()
Implementation to open a WriteStream. |
Path |
schemeWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String uri,
int offset)
Parse the scheme for the recipient and the attributes. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String url
| Method Detail |
|---|
public Path schemeWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String uri,
int offset)
schemeWalk in class PathuserPath - the user's lookup() path.attributes - the attributes for the new path.uri - the lookup() pathoffset - offset into newPath to start lookup.
public java.lang.String getURL()
getURL in class Pathpublic java.lang.String getScheme()
getScheme in class Pathpublic java.lang.String getPath()
getPath in class Pathpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in class Path
public StreamImpl openWriteImpl()
throws java.io.IOException
openWriteImpl in class Pathjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||