|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.net.URLConnection
gnu.mail.util.MailboxURLConnection
public class MailboxURLConnection
A URLConnection that can be used to access mailboxes using the JavaMail API.
| Field Summary | |
|---|---|
protected Folder |
folder
The mail folder. |
protected java.util.Map |
headers
The headers to return. |
protected Message |
message
The mail message, if the URL represents a message. |
protected Store |
store
The mail store. |
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
MailboxURLConnection(java.net.URL url)
Constructs a new mailbox URL connection using the specified URL. |
|
| Method Summary | |
|---|---|
protected static URLName |
asURLName(java.net.URL url)
Converts a URL into a URLName. |
void |
connect()
Connects to the mailbox. |
java.lang.Object |
getContent()
|
java.lang.String |
getHeaderField(int index)
|
java.lang.String |
getHeaderField(java.lang.String name)
|
java.lang.String |
getHeaderFieldKey(int index)
|
java.util.Map |
getHeaderFields()
|
java.io.InputStream |
getInputStream()
|
| Methods inherited from class java.net.URLConnection |
|---|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderFieldDate, getHeaderFieldInt, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Store store
protected Folder folder
protected Message message
protected java.util.Map headers
| Constructor Detail |
|---|
public MailboxURLConnection(java.net.URL url)
url - the URL representing the mailbox to connect to| Method Detail |
|---|
public void connect()
throws java.io.IOException
connect in class java.net.URLConnectionjava.io.IOExceptionpublic java.lang.String getHeaderField(int index)
getHeaderField in class java.net.URLConnectionpublic java.lang.String getHeaderFieldKey(int index)
getHeaderFieldKey in class java.net.URLConnectionpublic java.lang.String getHeaderField(java.lang.String name)
getHeaderField in class java.net.URLConnectionpublic java.util.Map getHeaderFields()
getHeaderFields in class java.net.URLConnection
public java.lang.Object getContent()
throws java.io.IOException
getContent in class java.net.URLConnectionjava.io.IOException
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOExceptionprotected static URLName asURLName(java.net.URL url)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||