Class XmppSenderConnection
java.lang.Object
org.springframework.ws.transport.AbstractWebServiceConnection
org.springframework.ws.transport.AbstractSenderConnection
org.springframework.ws.transport.xmpp.XmppSenderConnection
- All Implemented Interfaces:
AutoCloseable,org.springframework.ws.transport.HeadersAwareSenderWebServiceConnection,org.springframework.ws.transport.WebServiceConnection
public class XmppSenderConnection
extends org.springframework.ws.transport.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, Greg Turnquist
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXmppSenderConnection(org.jivesoftware.smack.XMPPConnection connection, String to, String thread) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestHeader(String name, String value) org.jivesoftware.smack.packet.MessageReturns the request message for this connection.protected OutputStreamgetResponseHeaders(String name) protected InputStreamorg.jivesoftware.smack.packet.MessageReturns the response message, if any, for this connection.getUri()booleanhasError()protected booleanprotected voidprotected voidonSendAfterWrite(org.springframework.ws.WebServiceMessage message) Methods inherited from class org.springframework.ws.transport.AbstractSenderConnection
createTransportInputStream, createTransportOutputStream, onCloseMethods inherited from class org.springframework.ws.transport.AbstractWebServiceConnection
close, onReceiveAfterRead, onSendBeforeWrite, receive, send
-
Constructor Details
-
XmppSenderConnection
-
-
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
-
addRequestHeader
-
getRequestOutputStream
- Specified by:
getRequestOutputStreamin classorg.springframework.ws.transport.AbstractSenderConnection- Throws:
IOException
-
onSendAfterWrite
protected void onSendAfterWrite(org.springframework.ws.WebServiceMessage message) throws IOException - Overrides:
onSendAfterWritein classorg.springframework.ws.transport.AbstractWebServiceConnection- Throws:
IOException
-
onReceiveBeforeRead
- Overrides:
onReceiveBeforeReadin classorg.springframework.ws.transport.AbstractWebServiceConnection- Throws:
IOException
-
hasResponse
- Specified by:
hasResponsein classorg.springframework.ws.transport.AbstractSenderConnection- Throws:
IOException
-
getResponseHeaderNames
-
getResponseHeaders
- Throws:
IOException
-
getResponseInputStream
- Specified by:
getResponseInputStreamin classorg.springframework.ws.transport.AbstractSenderConnection- Throws:
IOException
-