public class XmppReceiverConnection extends AbstractReceiverConnection
WebServiceConnection that is used for server-side XMPP
access. Exposes a Message request and response message.| Constructor and Description |
|---|
XmppReceiverConnection(org.jivesoftware.smack.XMPPConnection connection,
org.jivesoftware.smack.packet.Message requestMessage) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResponseHeader(String name,
String value) |
String |
getErrorMessage() |
Iterator<String> |
getRequestHeaderNames() |
Iterator<String> |
getRequestHeaders(String name) |
protected InputStream |
getRequestInputStream() |
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() |
URI |
getUri() |
boolean |
hasError() |
protected void |
onSendAfterWrite(WebServiceMessage message) |
protected void |
onSendBeforeWrite(WebServiceMessage message) |
createTransportInputStream, createTransportOutputStream, onCloseclose, onReceiveAfterRead, onReceiveBeforeRead, receive, sendpublic XmppReceiverConnection(org.jivesoftware.smack.XMPPConnection connection,
org.jivesoftware.smack.packet.Message requestMessage)
public org.jivesoftware.smack.packet.Message getRequestMessage()
public org.jivesoftware.smack.packet.Message getResponseMessage()
public URI getUri() throws URISyntaxException
URISyntaxExceptionpublic boolean hasError()
public String getErrorMessage()
public Iterator<String> getRequestHeaderNames() throws IOException
IOExceptionpublic Iterator<String> getRequestHeaders(String name) throws IOException
IOExceptionprotected InputStream getRequestInputStream() throws IOException
getRequestInputStream in class AbstractReceiverConnectionIOExceptionprotected void onSendBeforeWrite(WebServiceMessage message) throws IOException
onSendBeforeWrite in class AbstractWebServiceConnectionIOExceptionpublic void addResponseHeader(String name, String value) throws IOException
IOExceptionprotected OutputStream getResponseOutputStream() throws IOException
getResponseOutputStream in class AbstractReceiverConnectionIOExceptionprotected void onSendAfterWrite(WebServiceMessage message) throws IOException
onSendAfterWrite in class AbstractWebServiceConnectionIOExceptionCopyright © 2022 Pivotal Software. All rights reserved.