public abstract class AbstractReceiverConnection extends AbstractWebServiceConnection implements HeadersAwareReceiverWebServiceConnection
WebServiceConnection implementations used for receiving requests.| Constructor and Description |
|---|
AbstractReceiverConnection() |
| Modifier and Type | Method and Description |
|---|---|
protected TransportInputStream |
createTransportInputStream()
Returns a
TransportInputStream. |
protected TransportOutputStream |
createTransportOutputStream()
Returns a
TransportOutputStream for the given message. |
protected abstract InputStream |
getRequestInputStream()
Returns the input stream to read the response from.
|
protected abstract OutputStream |
getResponseOutputStream()
Returns the output stream to write the request to.
|
protected void |
onClose()
Template method invoked from
AbstractWebServiceConnection.close(). |
close, onReceiveAfterRead, onReceiveBeforeRead, onSendAfterWrite, onSendBeforeWrite, receive, sendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddResponseHeader, getRequestHeaderNames, getRequestHeadersgetErrorMessage, getUri, hasErrorprotected final TransportInputStream createTransportInputStream() throws IOException
AbstractWebServiceConnectionTransportInputStream. Called from AbstractWebServiceConnection.receive(WebServiceMessageFactory).createTransportInputStream in class AbstractWebServiceConnectionnull if no response can be readIOException - when an I/O exception occursprotected final TransportOutputStream createTransportOutputStream() throws IOException
AbstractWebServiceConnectionTransportOutputStream for the given message. Called from AbstractWebServiceConnection.send(WebServiceMessage).createTransportOutputStream in class AbstractWebServiceConnectionIOException - when an I/O exception occursprotected void onClose()
throws IOException
AbstractWebServiceConnection.close(). Default implementation is empty.onClose in class AbstractWebServiceConnectionIOException - if an I/O error occurs when closing this connectionprotected abstract InputStream getRequestInputStream() throws IOException
IOExceptionprotected abstract OutputStream getResponseOutputStream() throws IOException
IOException