|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.transport.AbstractWebServiceConnection org.springframework.ws.transport.AbstractReceiverConnection org.springframework.ws.transport.xmpp.XmppReceiverConnection
public class XmppReceiverConnection
Implementation of WebServiceConnection
that is used for server-side XMPP
access. Exposes a Message
request and response message.
Constructor Summary | |
---|---|
XmppReceiverConnection(org.jivesoftware.smack.XMPPConnection connection,
org.jivesoftware.smack.packet.Message requestMessage)
|
Method Summary | |
---|---|
protected void |
addResponseHeader(String name,
String value)
Adds a response header with the given name and value. |
String |
getErrorMessage()
Returns the error message. |
protected Iterator<String> |
getRequestHeaderNames()
Returns an iteration over all the header names this request contains. |
protected Iterator<String> |
getRequestHeaders(String name)
Returns an iteration over all the string values of the specified header. |
protected InputStream |
getRequestInputStream()
Returns the input stream to read the response from. |
org.jivesoftware.smack.packet.Message |
getRequestMessage()
Returns the request message for this connection. |
org.jivesoftware.smack.packet.Message |
getResponseMessage()
Returns the response message, if any, for this connection. |
protected OutputStream |
getResponseOutputStream()
Returns the output stream to write the request to. |
URI |
getUri()
Returns the URI for this connection. |
boolean |
hasError()
Indicates whether this connection has an error. |
protected void |
onSendAfterWrite(WebServiceMessage message)
Called after the given message has been written to the TransportOutputStream . |
protected void |
onSendBeforeWrite(WebServiceMessage message)
Called before the given message has been written to the TransportOutputStream . |
Methods inherited from class org.springframework.ws.transport.AbstractReceiverConnection |
---|
createTransportInputStream, createTransportOutputStream, onClose |
Methods inherited from class org.springframework.ws.transport.AbstractWebServiceConnection |
---|
close, onReceiveAfterRead, onReceiveBeforeRead, receive, send |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmppReceiverConnection(org.jivesoftware.smack.XMPPConnection connection, org.jivesoftware.smack.packet.Message requestMessage)
Method Detail |
---|
public org.jivesoftware.smack.packet.Message getRequestMessage()
public org.jivesoftware.smack.packet.Message getResponseMessage()
public URI getUri() throws URISyntaxException
WebServiceConnection
URISyntaxException
public boolean hasError()
WebServiceConnection
true
if this connection has an error; false
otherwise.public String getErrorMessage()
WebServiceConnection
null
when no error is presentWebServiceConnection.hasError()
protected Iterator<String> getRequestHeaderNames() throws IOException
AbstractReceiverConnection
Iterator
if
there are no headers.
getRequestHeaderNames
in class AbstractReceiverConnection
IOException
protected Iterator<String> getRequestHeaders(String name) throws IOException
AbstractReceiverConnection
Iterator
if there are no headers of the specified name.
getRequestHeaders
in class AbstractReceiverConnection
IOException
protected InputStream getRequestInputStream() throws IOException
AbstractReceiverConnection
getRequestInputStream
in class AbstractReceiverConnection
IOException
protected void onSendBeforeWrite(WebServiceMessage message) throws IOException
AbstractWebServiceConnection
TransportOutputStream
. Called from AbstractWebServiceConnection.send(WebServiceMessage)
.
Default implementation does nothing.
onSendBeforeWrite
in class AbstractWebServiceConnection
message
- the message
IOException
- when an I/O exception occursprotected void addResponseHeader(String name, String value) throws IOException
AbstractReceiverConnection
addResponseHeader
in class AbstractReceiverConnection
name
- the name of the headervalue
- the value of the header
IOException
protected OutputStream getResponseOutputStream() throws IOException
AbstractReceiverConnection
getResponseOutputStream
in class AbstractReceiverConnection
IOException
protected void onSendAfterWrite(WebServiceMessage message) throws IOException
AbstractWebServiceConnection
TransportOutputStream
. Called from AbstractWebServiceConnection.send(WebServiceMessage)
.
Default implementation does nothing.
onSendAfterWrite
in class AbstractWebServiceConnection
message
- the message
IOException
- when an I/O exception occurs
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |