|
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
org.springframework.ws.transport.xmpp.XmppSenderConnection
public class XmppSenderConnection
Implementation of WebServiceConnection that is used for client-side XMPP
access. Exposes a Message request and response message.
| Constructor Summary | |
|---|---|
protected |
XmppSenderConnection(org.jivesoftware.smack.XMPPConnection connection,
String to,
String thread)
|
| Method Summary | |
|---|---|
protected void |
addRequestHeader(String name,
String value)
Adds a request header with the given name and value. |
String |
getErrorMessage()
Returns the error message. |
org.jivesoftware.smack.packet.Message |
getRequestMessage()
Returns the request message for this connection. |
protected OutputStream |
getRequestOutputStream()
Returns the output stream to write the request to. |
protected Iterator<String> |
getResponseHeaderNames()
Returns an iteration over all the header names this request contains. |
protected Iterator<String> |
getResponseHeaders(String name)
Returns an iteration over all the string values of the specified header. |
protected InputStream |
getResponseInputStream()
Returns the input stream to read the response from. |
org.jivesoftware.smack.packet.Message |
getResponseMessage()
Returns the response message, if any, for this connection. |
URI |
getUri()
Returns the URI for this connection. |
boolean |
hasError()
Indicates whether this connection has an error. |
protected boolean |
hasResponse()
Indicates whether this connection has a response. |
protected void |
onReceiveBeforeRead()
Called before a message has been read from the TransportInputStream. |
protected void |
onSendAfterWrite(WebServiceMessage message)
Called after the given message has been written to the TransportOutputStream. |
| Methods inherited from class org.springframework.ws.transport.AbstractSenderConnection |
|---|
createTransportInputStream, createTransportOutputStream, onClose |
| Methods inherited from class org.springframework.ws.transport.AbstractWebServiceConnection |
|---|
close, onReceiveAfterRead, onSendBeforeWrite, receive, send |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected XmppSenderConnection(org.jivesoftware.smack.XMPPConnection connection,
String to,
String thread)
| Method Detail |
|---|
public org.jivesoftware.smack.packet.Message getRequestMessage()
public org.jivesoftware.smack.packet.Message getResponseMessage()
public URI getUri()
throws URISyntaxException
WebServiceConnection
URISyntaxExceptionpublic boolean hasError()
WebServiceConnection
true if this connection has an error; false otherwise.public String getErrorMessage()
WebServiceConnection
null when no error is presentWebServiceConnection.hasError()
protected void addRequestHeader(String name,
String value)
AbstractSenderConnection
addRequestHeader in class AbstractSenderConnectionname - the name of the headervalue - the value of the header
protected OutputStream getRequestOutputStream()
throws IOException
AbstractSenderConnection
getRequestOutputStream in class AbstractSenderConnectionIOException
protected void onSendAfterWrite(WebServiceMessage message)
throws IOException
AbstractWebServiceConnectionTransportOutputStream. Called from AbstractWebServiceConnection.send(WebServiceMessage).
Default implementation does nothing.
onSendAfterWrite in class AbstractWebServiceConnectionmessage - the message
IOException - when an I/O exception occurs
protected void onReceiveBeforeRead()
throws IOException
AbstractWebServiceConnectionTransportInputStream. Called from AbstractWebServiceConnection.receive(WebServiceMessageFactory).
Default implementation does nothing.
onReceiveBeforeRead in class AbstractWebServiceConnectionIOException - when an I/O exception occurs
protected boolean hasResponse()
throws IOException
AbstractSenderConnection
hasResponse in class AbstractSenderConnectionIOExceptionprotected Iterator<String> getResponseHeaderNames()
AbstractSenderConnectionIterator if
there are no headers.
getResponseHeaderNames in class AbstractSenderConnection
protected Iterator<String> getResponseHeaders(String name)
throws IOException
AbstractSenderConnectionIterator
if there are no headers of the specified name.
getResponseHeaders in class AbstractSenderConnectionIOException
protected InputStream getResponseInputStream()
throws IOException
AbstractSenderConnection
getResponseInputStream in class AbstractSenderConnectionIOException
|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||