|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ws.transport.AbstractWebServiceConnection
org.springframework.ws.transport.AbstractSenderConnection
public abstract class AbstractSenderConnection
Abstract base class for WebServiceConnection implementations used for sending requests.
| Constructor Summary | |
|---|---|
AbstractSenderConnection()
|
|
| Method Summary | |
|---|---|
protected abstract void |
addRequestHeader(String name,
String value)
Adds a request header with the given name and value. |
void |
close()
Closes this connection. |
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 Iterator |
getResponseHeaderNames()
Returns an iteration over all the header names this request contains. |
protected abstract Iterator |
getResponseHeaders(String name)
Returns an iteration over all the string values of the specified header. |
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 close(). |
| Methods inherited from class org.springframework.ws.transport.AbstractWebServiceConnection |
|---|
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, hasError |
| Constructor Detail |
|---|
public AbstractSenderConnection()
| Method Detail |
|---|
protected final TransportOutputStream createTransportOutputStream()
throws IOException
AbstractWebServiceConnectionTransportOutputStream for the given message. Called from AbstractWebServiceConnection.send(WebServiceMessage).
createTransportOutputStream in class AbstractWebServiceConnectionIOException - when an I/O exception occurs
protected final TransportInputStream createTransportInputStream()
throws IOException
AbstractWebServiceConnectionTransportInputStream. Called from AbstractWebServiceConnection.receive(WebServiceMessageFactory).
createTransportInputStream in class AbstractWebServiceConnectionnull if no response can be read
IOException - when an I/O exception occurs
public final void close()
throws IOException
WebServiceConnection
IOException - if an I/O error occurs when closing this connection
protected void onClose()
throws IOException
close(). Default implementation is empty.
IOException - if an I/O error occurs when closing this connection
protected abstract boolean hasResponse()
throws IOException
IOException
protected abstract void addRequestHeader(String name,
String value)
throws IOException
name - the name of the headervalue - the value of the header
IOException
protected abstract OutputStream getRequestOutputStream()
throws IOException
IOException
protected abstract Iterator getResponseHeaderNames()
throws IOException
Iterator if
there areno headers.
IOException
protected abstract Iterator getResponseHeaders(String name)
throws IOException
Iterator
if there are no headers of the specified name.
IOException
protected abstract InputStream getResponseInputStream()
throws IOException
IOException
|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||