org.springframework.ws.transport.xmpp
Class XmppSenderConnection
java.lang.Object
org.springframework.ws.transport.AbstractWebServiceConnection
org.springframework.ws.transport.AbstractSenderConnection
org.springframework.ws.transport.xmpp.XmppSenderConnection
- All Implemented Interfaces:
- WebServiceConnection
public class XmppSenderConnection
- extends AbstractSenderConnection
Implementation of WebServiceConnection
that is used for client-side XMPP
access. Exposes a Message
request and response message.
- Since:
- 2.0
- Author:
- Gildas Cuisinier, Arjen Poutsma
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmppSenderConnection
protected XmppSenderConnection(org.jivesoftware.smack.XMPPConnection connection,
String to,
String thread)
getRequestMessage
public org.jivesoftware.smack.packet.Message getRequestMessage()
- Returns the request message for this connection.
getResponseMessage
public org.jivesoftware.smack.packet.Message getResponseMessage()
- Returns the response message, if any, for this connection.
getUri
public URI getUri()
throws URISyntaxException
- Throws:
URISyntaxException
hasError
public boolean hasError()
getErrorMessage
public String getErrorMessage()
addRequestHeader
protected void addRequestHeader(String name,
String value)
- Specified by:
addRequestHeader
in class AbstractSenderConnection
getRequestOutputStream
protected OutputStream getRequestOutputStream()
throws IOException
- Specified by:
getRequestOutputStream
in class AbstractSenderConnection
- Throws:
IOException
onSendAfterWrite
protected void onSendAfterWrite(WebServiceMessage message)
throws IOException
- Overrides:
onSendAfterWrite
in class AbstractWebServiceConnection
- Throws:
IOException
onReceiveBeforeRead
protected void onReceiveBeforeRead()
throws IOException
- Overrides:
onReceiveBeforeRead
in class AbstractWebServiceConnection
- Throws:
IOException
hasResponse
protected boolean hasResponse()
throws IOException
- Specified by:
hasResponse
in class AbstractSenderConnection
- Throws:
IOException
getResponseHeaderNames
protected Iterator<String> getResponseHeaderNames()
- Specified by:
getResponseHeaderNames
in class AbstractSenderConnection
getResponseHeaders
protected Iterator<String> getResponseHeaders(String name)
throws IOException
- Specified by:
getResponseHeaders
in class AbstractSenderConnection
- Throws:
IOException
getResponseInputStream
protected InputStream getResponseInputStream()
throws IOException
- Specified by:
getResponseInputStream
in class AbstractSenderConnection
- Throws:
IOException
Copyright © 2013 The Spring Web Services Framework. All Rights Reserved.