Class XmppReceiverConnection
java.lang.Object
org.springframework.ws.transport.AbstractWebServiceConnection
org.springframework.ws.transport.AbstractReceiverConnection
org.springframework.ws.transport.xmpp.XmppReceiverConnection
- All Implemented Interfaces:
AutoCloseable,org.springframework.ws.transport.HeadersAwareReceiverWebServiceConnection,org.springframework.ws.transport.WebServiceConnection
public class XmppReceiverConnection
extends org.springframework.ws.transport.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, Greg Turnquist
-
Constructor Summary
ConstructorsConstructorDescriptionXmppReceiverConnection(org.jivesoftware.smack.XMPPConnection connection, org.jivesoftware.smack.packet.Message requestMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResponseHeader(String name, String value) getRequestHeaders(String name) protected InputStreamorg.jivesoftware.smack.packet.MessageReturns the request message for this connection.org.jivesoftware.smack.packet.MessageReturns the response message, if any, for this connection.protected OutputStreamgetUri()booleanhasError()protected voidonSendAfterWrite(org.springframework.ws.WebServiceMessage message) protected voidonSendBeforeWrite(org.springframework.ws.WebServiceMessage message) Methods inherited from class org.springframework.ws.transport.AbstractReceiverConnection
createTransportInputStream, createTransportOutputStream, onCloseMethods inherited from class org.springframework.ws.transport.AbstractWebServiceConnection
close, onReceiveAfterRead, onReceiveBeforeRead, receive, send
-
Constructor Details
-
XmppReceiverConnection
public XmppReceiverConnection(org.jivesoftware.smack.XMPPConnection connection, org.jivesoftware.smack.packet.Message requestMessage)
-
-
Method Details
-
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
- Throws:
URISyntaxException
-
hasError
public boolean hasError() -
getErrorMessage
-
getRequestHeaderNames
- Throws:
IOException
-
getRequestHeaders
- Throws:
IOException
-
getRequestInputStream
- Specified by:
getRequestInputStreamin classorg.springframework.ws.transport.AbstractReceiverConnection- Throws:
IOException
-
onSendBeforeWrite
protected void onSendBeforeWrite(org.springframework.ws.WebServiceMessage message) throws IOException - Overrides:
onSendBeforeWritein classorg.springframework.ws.transport.AbstractWebServiceConnection- Throws:
IOException
-
addResponseHeader
- Throws:
IOException
-
getResponseOutputStream
- Specified by:
getResponseOutputStreamin classorg.springframework.ws.transport.AbstractReceiverConnection- Throws:
IOException
-
onSendAfterWrite
protected void onSendAfterWrite(org.springframework.ws.WebServiceMessage message) throws IOException - Overrides:
onSendAfterWritein classorg.springframework.ws.transport.AbstractWebServiceConnection- Throws:
IOException
-