public class MailSenderConnection
extends org.springframework.ws.transport.AbstractSenderConnection
WebServiceConnection that is used for client-side Mail access. Exposes a Message
request and response message.| Modifier | Constructor and Description |
|---|---|
protected |
MailSenderConnection(Session session,
URLName transportUri,
URLName storeUri,
InternetAddress to,
long receiveTimeout)
Constructs a new Mail connection with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRequestHeader(String name,
String value) |
String |
getErrorMessage() |
Message |
getRequestMessage()
Returns the request message for this connection.
|
protected OutputStream |
getRequestOutputStream() |
protected Iterator<String> |
getResponseHeaderNames() |
protected Iterator<String> |
getResponseHeaders(String name) |
protected InputStream |
getResponseInputStream() |
Message |
getResponseMessage()
Returns the response message, if any, for this connection.
|
URI |
getUri() |
boolean |
hasError() |
protected boolean |
hasResponse() |
void |
onClose() |
protected void |
onReceiveBeforeRead() |
protected void |
onSendAfterWrite(org.springframework.ws.WebServiceMessage message) |
protected void |
onSendBeforeWrite(org.springframework.ws.WebServiceMessage message) |
createTransportInputStream, createTransportOutputStreamprotected MailSenderConnection(Session session, URLName transportUri, URLName storeUri, InternetAddress to, long receiveTimeout)
public Message getRequestMessage()
public Message getResponseMessage()
public URI getUri() throws URISyntaxException
URISyntaxExceptionprotected void onSendBeforeWrite(org.springframework.ws.WebServiceMessage message)
throws IOException
onSendBeforeWrite in class org.springframework.ws.transport.AbstractWebServiceConnectionIOExceptionprotected void addRequestHeader(String name, String value) throws IOException
addRequestHeader in class org.springframework.ws.transport.AbstractSenderConnectionIOExceptionprotected OutputStream getRequestOutputStream() throws IOException
getRequestOutputStream in class org.springframework.ws.transport.AbstractSenderConnectionIOExceptionprotected void onSendAfterWrite(org.springframework.ws.WebServiceMessage message)
throws IOException
onSendAfterWrite in class org.springframework.ws.transport.AbstractWebServiceConnectionIOExceptionprotected void onReceiveBeforeRead()
throws IOException
onReceiveBeforeRead in class org.springframework.ws.transport.AbstractWebServiceConnectionIOExceptionprotected boolean hasResponse()
throws IOException
hasResponse in class org.springframework.ws.transport.AbstractSenderConnectionIOExceptionprotected Iterator<String> getResponseHeaderNames() throws IOException
getResponseHeaderNames in class org.springframework.ws.transport.AbstractSenderConnectionIOExceptionprotected Iterator<String> getResponseHeaders(String name) throws IOException
getResponseHeaders in class org.springframework.ws.transport.AbstractSenderConnectionIOExceptionprotected InputStream getResponseInputStream() throws IOException
getResponseInputStream in class org.springframework.ws.transport.AbstractSenderConnectionIOExceptionpublic boolean hasError()
throws IOException
IOExceptionpublic String getErrorMessage() throws IOException
IOExceptionpublic void onClose()
throws IOException
onClose in class org.springframework.ws.transport.AbstractSenderConnectionIOException