org.springframework.ws.transport.xmpp
Class XmppSenderConnection

java.lang.Object
  extended by org.springframework.ws.transport.AbstractWebServiceConnection
      extended by org.springframework.ws.transport.AbstractSenderConnection
          extended by 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

Constructor Summary
protected XmppSenderConnection(org.jivesoftware.smack.XMPPConnection connection, String to, String thread)
           
 
Method Summary
protected  void addRequestHeader(String name, String value)
           
 String getErrorMessage()
           
 org.jivesoftware.smack.packet.Message getRequestMessage()
          Returns the request message for this connection.
protected  OutputStream getRequestOutputStream()
           
protected  Iterator<String> getResponseHeaderNames()
           
protected  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(WebServiceMessage message)
           
 
Methods inherited from class org.springframework.ws.transport.AbstractSenderConnection
createTransportInputStream, createTransportOutputStream, onClose
 
Methods inherited from class org.springframework.ws.transport.AbstractWebServiceConnection
close, onReceiveAfterRead, onSendBeforeWrite, receive, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmppSenderConnection

protected XmppSenderConnection(org.jivesoftware.smack.XMPPConnection connection,
                               String to,
                               String thread)
Method Detail

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.