Package org.springframework.ws.transport
Class AbstractReceiverConnection
java.lang.Object
org.springframework.ws.transport.AbstractWebServiceConnection
org.springframework.ws.transport.AbstractReceiverConnection
- All Implemented Interfaces:
AutoCloseable
,HeadersAwareReceiverWebServiceConnection
,WebServiceConnection
- Direct Known Subclasses:
HttpExchangeConnection
,HttpServletConnection
,JmsReceiverConnection
,MailReceiverConnection
,XmppReceiverConnection
public abstract class AbstractReceiverConnection
extends AbstractWebServiceConnection
implements HeadersAwareReceiverWebServiceConnection
Abstract base class for
WebServiceConnection
implementations used for receiving requests.- Since:
- 1.0.0
- Author:
- Arjen Poutsma, Greg Turnquist
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final TransportInputStream
Returns aTransportInputStream
.protected final TransportOutputStream
Returns aTransportOutputStream
for the given message.protected abstract InputStream
Returns the input stream to read the response from.protected abstract OutputStream
Returns the output stream to write the request to.protected void
onClose()
Template method invoked fromAbstractWebServiceConnection.close()
.Methods inherited from class org.springframework.ws.transport.AbstractWebServiceConnection
close, onReceiveAfterRead, onReceiveBeforeRead, onSendAfterWrite, onSendBeforeWrite, receive, send
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ws.transport.HeadersAwareReceiverWebServiceConnection
addResponseHeader, getRequestHeaderNames, getRequestHeaders
Methods inherited from interface org.springframework.ws.transport.WebServiceConnection
getErrorMessage, getUri, hasError
-
Constructor Details
-
AbstractReceiverConnection
public AbstractReceiverConnection()
-
-
Method Details
-
createTransportInputStream
Description copied from class:AbstractWebServiceConnection
Returns aTransportInputStream
. Called fromAbstractWebServiceConnection.receive(WebServiceMessageFactory)
.- Specified by:
createTransportInputStream
in classAbstractWebServiceConnection
- Returns:
- the input stream, or
null
if no response can be read - Throws:
IOException
- when an I/O exception occurs
-
createTransportOutputStream
Description copied from class:AbstractWebServiceConnection
Returns aTransportOutputStream
for the given message. Called fromAbstractWebServiceConnection.send(WebServiceMessage)
.- Specified by:
createTransportOutputStream
in classAbstractWebServiceConnection
- Returns:
- the output stream
- Throws:
IOException
- when an I/O exception occurs
-
onClose
Template method invoked fromAbstractWebServiceConnection.close()
. Default implementation is empty.- Overrides:
onClose
in classAbstractWebServiceConnection
- Throws:
IOException
- if an I/O error occurs when closing this connection
-
getRequestInputStream
Returns the input stream to read the response from.- Throws:
IOException
-
getResponseOutputStream
Returns the output stream to write the request to.- Throws:
IOException
-