public static class EmailService.EmailMessage extends Object implements EmailService.Closeable
| 构造器和说明 |
|---|
EmailMessage(javax.mail.Message email,
javax.mail.search.SearchTerm query) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
<T> T |
getAttribute(String key) |
Map<String,Object> |
getAttributeMap() |
EmailService.Content |
getContent() |
<CONTENT extends EmailService.Content> |
getContent(Class<CONTENT> type,
int index) |
List<EmailService.Content> |
getContentList() |
<CONTENT extends EmailService.Content> |
getContentList(Class<CONTENT> type) |
javax.mail.internet.ContentType |
getContentType() |
javax.mail.Message |
getEmail() |
String |
getFolderName() |
EmailService.Address[] |
getForms() |
EmailService.Headers |
getHeaders() |
String |
getMessageId() |
EmailService.EmailMessage |
getNext() |
EmailService.EmailMessage |
getPrev() |
javax.mail.search.SearchTerm |
getQuery() |
Date |
getReceivedDate() |
Boolean |
getSeenFlag() |
EmailService.Address |
getSender() |
String |
getSenderEmail() |
String |
getSubject() |
String |
getUsername() |
boolean |
isParseFormFlag() |
boolean |
isSeen() |
<T> T |
removeAttribute(String key) |
<T> T |
setAttribute(String key,
T value) |
String |
toString() |
public EmailMessage(javax.mail.Message email,
javax.mail.search.SearchTerm query)
public javax.mail.Message getEmail()
public javax.mail.search.SearchTerm getQuery()
public String getFolderName()
public String getUsername()
public EmailService.EmailMessage getNext()
public EmailService.EmailMessage getPrev()
public boolean isParseFormFlag()
public Boolean getSeenFlag()
public boolean isSeen()
throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic <T> T getAttribute(String key)
public <T> T setAttribute(String key, T value)
public <T> T removeAttribute(String key)
public String getMessageId() throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic EmailService.Headers getHeaders() throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic EmailService.Address getSender() throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic EmailService.Address[] getForms() throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic Date getReceivedDate() throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic EmailService.Content getContent() throws IOException, javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionpublic javax.mail.internet.ContentType getContentType()
throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic String getSubject() throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic String getSenderEmail() throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic <CONTENT extends EmailService.Content> CONTENT getContent(Class<CONTENT> type, int index) throws IOException, javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionpublic List<EmailService.Content> getContentList() throws IOException, javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionpublic <CONTENT extends EmailService.Content> List<CONTENT> getContentList(Class<CONTENT> type) throws IOException, javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionpublic void close()
close 在接口中 EmailService.Closeableclose 在接口中 AutoCloseableCopyright © 2022. All rights reserved.