public class XmppSenderConnection
extends org.springframework.ws.transport.AbstractSenderConnection
WebServiceConnection that is used for client-side XMPP
access. Exposes a Message request and response message.| Modifier | Constructor and Description |
|---|---|
protected |
XmppSenderConnection(org.jivesoftware.smack.XMPPConnection connection,
String to,
String thread) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestHeader(String name,
String value) |
String |
getErrorMessage() |
org.jivesoftware.smack.packet.Message |
getRequestMessage()
Returns the request message for this connection.
|
protected OutputStream |
getRequestOutputStream() |
Iterator<String> |
getResponseHeaderNames() |
Iterator<String> |
getResponseHeaders(String name) |
protected InputStream |
getResponseInputStream() |
org.jivesoftware.smack.packet.Message |
getResponseMessage()
Returns the response message, if any, for this connection.
|
URI |
getUri() |
boolean |
hasError() |
protected boolean |
hasResponse() |
protected void |
onReceiveBeforeRead() |
protected void |
onSendAfterWrite(org.springframework.ws.WebServiceMessage message) |
createTransportInputStream, createTransportOutputStream, onClosepublic org.jivesoftware.smack.packet.Message getRequestMessage()
public org.jivesoftware.smack.packet.Message getResponseMessage()
public URI getUri() throws URISyntaxException
URISyntaxExceptionpublic boolean hasError()
public String getErrorMessage()
protected OutputStream getRequestOutputStream() throws IOException
getRequestOutputStream in class org.springframework.ws.transport.AbstractSenderConnectionIOExceptionprotected void onSendAfterWrite(org.springframework.ws.WebServiceMessage message)
throws IOException
onSendAfterWrite in class org.springframework.ws.transport.AbstractWebServiceConnectionIOExceptionprotected void onReceiveBeforeRead()
throws IOException
onReceiveBeforeRead in class org.springframework.ws.transport.AbstractWebServiceConnectionIOExceptionprotected boolean hasResponse()
throws IOException
hasResponse in class org.springframework.ws.transport.AbstractSenderConnectionIOExceptionpublic Iterator<String> getResponseHeaders(String name) throws IOException
IOExceptionprotected InputStream getResponseInputStream() throws IOException
getResponseInputStream in class org.springframework.ws.transport.AbstractSenderConnectionIOException