public class XmppSenderConnection extends AbstractSenderConnection
WebServiceConnection that is used for client-side XMPP
access. Exposes a Message request and response message.| Modifier | Constructor and Description |
|---|---|
protected |
XmppSenderConnection(org.jivesoftware.smack.XMPPConnection connection,
String to,
String thread) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestHeader(String name,
String value) |
String |
getErrorMessage() |
org.jivesoftware.smack.packet.Message |
getRequestMessage()
Returns the request message for this connection.
|
protected OutputStream |
getRequestOutputStream() |
Iterator<String> |
getResponseHeaderNames() |
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) |
createTransportInputStream, createTransportOutputStream, onCloseclose, onReceiveAfterRead, onSendBeforeWrite, receive, sendpublic org.jivesoftware.smack.packet.Message getRequestMessage()
public org.jivesoftware.smack.packet.Message getResponseMessage()
public URI getUri() throws URISyntaxException
URISyntaxExceptionpublic boolean hasError()
public String getErrorMessage()
protected OutputStream getRequestOutputStream() throws IOException
getRequestOutputStream in class AbstractSenderConnectionIOExceptionprotected void onSendAfterWrite(WebServiceMessage message) throws IOException
onSendAfterWrite in class AbstractWebServiceConnectionIOExceptionprotected void onReceiveBeforeRead()
throws IOException
onReceiveBeforeRead in class AbstractWebServiceConnectionIOExceptionprotected boolean hasResponse()
throws IOException
hasResponse in class AbstractSenderConnectionIOExceptionpublic Iterator<String> getResponseHeaders(String name) throws IOException
IOExceptionprotected InputStream getResponseInputStream() throws IOException
getResponseInputStream in class AbstractSenderConnectionIOExceptionCopyright © 2022 Pivotal Software. All rights reserved.