public class MailReceiverConnection extends AbstractReceiverConnection
WebServiceConnection that is used for server-side Mail access. Exposes a Message
request and response message.| Modifier | Constructor and Description |
|---|---|
protected |
MailReceiverConnection(javax.mail.Message requestMessage,
javax.mail.Session session)
Constructs a new Mail connection with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResponseHeader(String name,
String value) |
String |
getErrorMessage() |
Iterator<String> |
getRequestHeaderNames() |
Iterator<String> |
getRequestHeaders(String name) |
protected InputStream |
getRequestInputStream() |
javax.mail.Message |
getRequestMessage()
Returns the request message for this connection.
|
javax.mail.Message |
getResponseMessage()
Returns the response message, if any, for this connection.
|
protected OutputStream |
getResponseOutputStream() |
URI |
getUri() |
boolean |
hasError() |
protected void |
onSendAfterWrite(WebServiceMessage message) |
protected void |
onSendBeforeWrite(WebServiceMessage message) |
createTransportInputStream, createTransportOutputStream, onCloseclose, onReceiveAfterRead, onReceiveBeforeRead, receive, sendprotected MailReceiverConnection(javax.mail.Message requestMessage,
javax.mail.Session session)
public javax.mail.Message getRequestMessage()
public javax.mail.Message getResponseMessage()
public URI getUri() throws URISyntaxException
URISyntaxExceptionpublic String getErrorMessage() throws IOException
IOExceptionpublic boolean hasError()
throws IOException
IOExceptionpublic Iterator<String> getRequestHeaderNames() throws IOException
IOExceptionpublic Iterator<String> getRequestHeaders(String name) throws IOException
IOExceptionprotected InputStream getRequestInputStream() throws IOException
getRequestInputStream in class AbstractReceiverConnectionIOExceptionpublic void addResponseHeader(String name, String value) throws IOException
IOExceptionprotected OutputStream getResponseOutputStream() throws IOException
getResponseOutputStream in class AbstractReceiverConnectionIOExceptionprotected void onSendBeforeWrite(WebServiceMessage message) throws IOException
onSendBeforeWrite in class AbstractWebServiceConnectionIOExceptionprotected void onSendAfterWrite(WebServiceMessage message) throws IOException
onSendAfterWrite in class AbstractWebServiceConnectionIOExceptionCopyright © 2022 Pivotal Software. All rights reserved.