|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.transport.AbstractWebServiceConnection org.springframework.ws.transport.AbstractReceiverConnection
public abstract class AbstractReceiverConnection
Abstract base class for WebServiceConnection
implementations used for receiving requests.
Constructor Summary | |
---|---|
AbstractReceiverConnection()
|
Method Summary | |
---|---|
protected abstract void |
addResponseHeader(String name,
String value)
Adds a response header with the given name and value. |
protected TransportInputStream |
createTransportInputStream()
Returns a TransportInputStream . |
protected TransportOutputStream |
createTransportOutputStream()
Returns a TransportOutputStream for the given message. |
protected abstract Iterator<String> |
getRequestHeaderNames()
Returns an iteration over all the header names this request contains. |
protected abstract Iterator<String> |
getRequestHeaders(String name)
Returns an iteration over all the string values of the specified header. |
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() . |
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.WebServiceConnection |
---|
getErrorMessage, getUri, hasError |
Constructor Detail |
---|
public AbstractReceiverConnection()
Method Detail |
---|
protected final TransportInputStream createTransportInputStream() throws IOException
AbstractWebServiceConnection
TransportInputStream
. Called from AbstractWebServiceConnection.receive(WebServiceMessageFactory)
.
createTransportInputStream
in class AbstractWebServiceConnection
null
if no response can be read
IOException
- when an I/O exception occursprotected 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 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 Iterator<String> getRequestHeaderNames() throws IOException
Iterator
if
there are no headers.
IOException
protected abstract Iterator<String> getRequestHeaders(String name) throws IOException
Iterator
if there are no headers of the specified name.
IOException
protected abstract InputStream getRequestInputStream() throws IOException
IOException
protected abstract void addResponseHeader(String name, String value) throws IOException
name
- the name of the headervalue
- the value of the header
IOException
protected abstract OutputStream getResponseOutputStream() throws IOException
IOException
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |