public class MailReceiverConnection
extends org.springframework.ws.transport.AbstractReceiverConnection
WebServiceConnection that is used for server-side Mail access. Exposes a Message
request and response message.| Modifier | Constructor and Description |
|---|---|
protected |
MailReceiverConnection(Message requestMessage,
Session session)
Constructs a new Mail connection with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addResponseHeader(String name,
String value) |
String |
getErrorMessage() |
protected Iterator<String> |
getRequestHeaderNames() |
protected Iterator<String> |
getRequestHeaders(String name) |
protected InputStream |
getRequestInputStream() |
Message |
getRequestMessage()
Returns the request message for this connection.
|
Message |
getResponseMessage()
Returns the response message, if any, for this connection.
|
protected OutputStream |
getResponseOutputStream() |
URI |
getUri() |
boolean |
hasError() |
protected void |
onSendAfterWrite(org.springframework.ws.WebServiceMessage message) |
protected void |
onSendBeforeWrite(org.springframework.ws.WebServiceMessage message) |
createTransportInputStream, createTransportOutputStream, onClosepublic Message getRequestMessage()
public Message getResponseMessage()
public URI getUri() throws URISyntaxException
URISyntaxExceptionpublic String getErrorMessage() throws IOException
IOExceptionpublic boolean hasError()
throws IOException
IOExceptionprotected Iterator<String> getRequestHeaderNames() throws IOException
getRequestHeaderNames in class org.springframework.ws.transport.AbstractReceiverConnectionIOExceptionprotected Iterator<String> getRequestHeaders(String name) throws IOException
getRequestHeaders in class org.springframework.ws.transport.AbstractReceiverConnectionIOExceptionprotected InputStream getRequestInputStream() throws IOException
getRequestInputStream in class org.springframework.ws.transport.AbstractReceiverConnectionIOExceptionprotected void addResponseHeader(String name, String value) throws IOException
addResponseHeader in class org.springframework.ws.transport.AbstractReceiverConnectionIOExceptionprotected OutputStream getResponseOutputStream() throws IOException
getResponseOutputStream in class org.springframework.ws.transport.AbstractReceiverConnectionIOExceptionprotected void onSendBeforeWrite(org.springframework.ws.WebServiceMessage message)
throws IOException
onSendBeforeWrite in class org.springframework.ws.transport.AbstractWebServiceConnectionIOExceptionprotected void onSendAfterWrite(org.springframework.ws.WebServiceMessage message)
throws IOException
onSendAfterWrite in class org.springframework.ws.transport.AbstractWebServiceConnectionIOException