org.springframework.ws.transport.xmpp
Class XmppReceiverConnection
java.lang.Object
org.springframework.ws.transport.AbstractWebServiceConnection
org.springframework.ws.transport.AbstractReceiverConnection
org.springframework.ws.transport.xmpp.XmppReceiverConnection
- All Implemented Interfaces:
- WebServiceConnection
public class XmppReceiverConnection
- extends AbstractReceiverConnection
Implementation of WebServiceConnection
that is used for server-side XMPP
access. Exposes a Message
request and response message.
- Since:
- 2.0
- Author:
- Gildas Cuisinier, Arjen Poutsma
Constructor Summary |
XmppReceiverConnection(org.jivesoftware.smack.XMPPConnection connection,
org.jivesoftware.smack.packet.Message requestMessage)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmppReceiverConnection
public XmppReceiverConnection(org.jivesoftware.smack.XMPPConnection connection,
org.jivesoftware.smack.packet.Message requestMessage)
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()
getRequestHeaderNames
protected Iterator<String> getRequestHeaderNames()
throws IOException
- Specified by:
getRequestHeaderNames
in class AbstractReceiverConnection
- Throws:
IOException
getRequestHeaders
protected Iterator<String> getRequestHeaders(String name)
throws IOException
- Specified by:
getRequestHeaders
in class AbstractReceiverConnection
- Throws:
IOException
getRequestInputStream
protected InputStream getRequestInputStream()
throws IOException
- Specified by:
getRequestInputStream
in class AbstractReceiverConnection
- Throws:
IOException
onSendBeforeWrite
protected void onSendBeforeWrite(WebServiceMessage message)
throws IOException
- Overrides:
onSendBeforeWrite
in class AbstractWebServiceConnection
- Throws:
IOException
addResponseHeader
protected void addResponseHeader(String name,
String value)
throws IOException
- Specified by:
addResponseHeader
in class AbstractReceiverConnection
- Throws:
IOException
getResponseOutputStream
protected OutputStream getResponseOutputStream()
throws IOException
- Specified by:
getResponseOutputStream
in class AbstractReceiverConnection
- Throws:
IOException
onSendAfterWrite
protected void onSendAfterWrite(WebServiceMessage message)
throws IOException
- Overrides:
onSendAfterWrite
in class AbstractWebServiceConnection
- Throws:
IOException
Copyright © 2013 The Spring Web Services Framework. All Rights Reserved.