|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebServiceConnection
Represents a point-to-point connection that a client can use for sending WebServiceMessage
objects directly
to a remote party.
WebServiceConnection
can be obtained using a WebServiceMessageSender
.
WebServiceMessageSender.createConnection(URI)
Method Summary | |
---|---|
void |
close()
Closes this connection. |
String |
getErrorMessage()
Returns the error message. |
URI |
getUri()
Returns the URI for this connection. |
boolean |
hasError()
Indicates whether this connection has an error. |
WebServiceMessage |
receive(WebServiceMessageFactory messageFactory)
Receives a message using the given WebServiceMessageFactory . |
void |
send(WebServiceMessage message)
Sends the given message using this connection. |
Method Detail |
---|
void send(WebServiceMessage message) throws IOException
message
- the message to be sent
IOException
- in case of I/O errorsWebServiceMessage receive(WebServiceMessageFactory messageFactory) throws IOException
WebServiceMessageFactory
. This method blocks until it receives, or
returns null
when no message is received.
messageFactory
- the message factory used for reading messages
null
if no message received
IOException
- in case of I/O errorsURI getUri() throws URISyntaxException
URISyntaxException
boolean hasError() throws IOException
true
if this connection has an error; false
otherwise.
IOException
String getErrorMessage() throws IOException
null
when no error is present
IOException
hasError()
void close() throws IOException
IOException
- if an I/O error occurs when closing this connection
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |