public abstract class AbstractSenderConnection extends AbstractWebServiceConnection implements HeadersAwareSenderWebServiceConnection
WebServiceConnection
implementations used for sending requests.Constructor and Description |
---|
AbstractSenderConnection() |
Modifier and Type | Method and Description |
---|---|
protected TransportInputStream |
createTransportInputStream()
Returns a
TransportInputStream . |
protected TransportOutputStream |
createTransportOutputStream()
Returns a
TransportOutputStream for the given message. |
protected abstract OutputStream |
getRequestOutputStream()
Returns the output stream to write the request to.
|
protected abstract InputStream |
getResponseInputStream()
Returns the input stream to read the response from.
|
protected abstract boolean |
hasResponse()
Indicates whether this connection has a response.
|
protected void |
onClose()
Template method invoked from
AbstractWebServiceConnection.close() . |
close, onReceiveAfterRead, onReceiveBeforeRead, onSendAfterWrite, onSendBeforeWrite, receive, send
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRequestHeader, getResponseHeaderNames, getResponseHeaders
getErrorMessage, getUri, hasError
protected final TransportOutputStream createTransportOutputStream() throws IOException
AbstractWebServiceConnection
TransportOutputStream
for the given message. Called from AbstractWebServiceConnection.send(WebServiceMessage)
.createTransportOutputStream
in class AbstractWebServiceConnection
IOException
- when an I/O exception occursprotected final TransportInputStream createTransportInputStream() throws IOException
AbstractWebServiceConnection
TransportInputStream
. Called from AbstractWebServiceConnection.receive(WebServiceMessageFactory)
.createTransportInputStream
in class AbstractWebServiceConnection
null
if no response can be readIOException
- when an I/O exception occursprotected void onClose() throws IOException
AbstractWebServiceConnection.close()
. Default implementation is empty.onClose
in class AbstractWebServiceConnection
IOException
- if an I/O error occurs when closing this connectionprotected abstract boolean hasResponse() throws IOException
IOException
protected abstract OutputStream getRequestOutputStream() throws IOException
IOException
protected abstract InputStream getResponseInputStream() throws IOException
IOException