Package org.springframework.ws.transport
Class AbstractSenderConnection
java.lang.Object
org.springframework.ws.transport.AbstractWebServiceConnection
org.springframework.ws.transport.AbstractSenderConnection
- All Implemented Interfaces:
AutoCloseable,HeadersAwareSenderWebServiceConnection,WebServiceConnection
- Direct Known Subclasses:
AbstractHttpSenderConnection,JmsSenderConnection,MailSenderConnection,XmppSenderConnection
public abstract class AbstractSenderConnection
extends AbstractWebServiceConnection
implements HeadersAwareSenderWebServiceConnection
Abstract base class for
WebServiceConnection implementations used for sending
requests.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final TransportInputStreamReturns aTransportInputStream.protected final TransportOutputStreamReturns aTransportOutputStreamfor the given message.protected abstract OutputStreamReturns the output stream to write the request to.protected abstract InputStreamReturns the input stream to read the response from.protected abstract booleanIndicates whether this connection has a response.protected voidonClose()Template method invoked fromAbstractWebServiceConnection.close().Methods inherited from class org.springframework.ws.transport.AbstractWebServiceConnection
close, onReceiveAfterRead, onReceiveBeforeRead, onSendAfterWrite, onSendBeforeWrite, receive, sendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ws.transport.HeadersAwareSenderWebServiceConnection
addRequestHeader, getResponseHeaderNames, getResponseHeadersMethods inherited from interface org.springframework.ws.transport.WebServiceConnection
getErrorMessage, getUri, hasError
-
Constructor Details
-
AbstractSenderConnection
public AbstractSenderConnection()
-
-
Method Details
-
createTransportOutputStream
Description copied from class:AbstractWebServiceConnectionReturns aTransportOutputStreamfor the given message. Called fromAbstractWebServiceConnection.send(WebServiceMessage).- Specified by:
createTransportOutputStreamin classAbstractWebServiceConnection- Returns:
- the output stream
- Throws:
IOException- when an I/O exception occurs
-
createTransportInputStream
Description copied from class:AbstractWebServiceConnectionReturns aTransportInputStream. Called fromAbstractWebServiceConnection.receive(WebServiceMessageFactory).- Specified by:
createTransportInputStreamin classAbstractWebServiceConnection- Returns:
- the input stream, or
nullif no response can be read - Throws:
IOException- when an I/O exception occurs
-
onClose
Template method invoked fromAbstractWebServiceConnection.close(). Default implementation is empty.- Overrides:
onClosein classAbstractWebServiceConnection- Throws:
IOException- if an I/O error occurs when closing this connection
-
hasResponse
Indicates whether this connection has a response.- Throws:
IOException
-
getRequestOutputStream
Returns the output stream to write the request to.- Throws:
IOException
-
getResponseInputStream
Returns the input stream to read the response from.- Throws:
IOException
-