public class Open
extends org.jivesoftware.smack.packet.IQ
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
| Constructor and Description |
|---|
Open(java.lang.String sessionID,
int blockSize)
Creates a new In-Band Bytestream open request packet.
|
Open(java.lang.String sessionID,
int blockSize,
InBandBytestreamManager.StanzaType stanza)
Creates a new In-Band Bytestream open request packet.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockSize()
Returns the block size in which the data will be fragmented.
|
protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder |
getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder xml) |
java.lang.String |
getSessionID()
Returns the unique session ID identifying this In-Band Bytestream.
|
InBandBytestreamManager.StanzaType |
getStanza()
Returns the stanza type used to encapsulate the data.
|
createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementXML, getType, isRequestIQ, setType, toXMLaddCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, overrideExtension, removeExtension, removeExtension, setError, setFrom, setLanguage, setPacketID, setStanzaId, setTo, toStringpublic static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public Open(java.lang.String sessionID,
int blockSize,
InBandBytestreamManager.StanzaType stanza)
The data sent over this In-Band Bytestream will be fragmented in blocks with the given block size. The block size should not be greater than 65535. A recommended default value is 4096.
The data can be sent using IQ stanzas or message stanzas.
sessionID - unique session ID identifying this In-Band BytestreamblockSize - block size in which the data will be fragmentedstanza - stanza type used to encapsulate the datapublic Open(java.lang.String sessionID,
int blockSize)
The data sent over this In-Band Bytestream will be fragmented in blocks with the given block size. The block size should not be greater than 65535. A recommended default value is 4096.
The data will be sent using IQ stanzas.
sessionID - unique session ID identifying this In-Band BytestreamblockSize - block size in which the data will be fragmentedpublic java.lang.String getSessionID()
public int getBlockSize()
public InBandBytestreamManager.StanzaType getStanza()
protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder xml)
getIQChildElementBuilder in class org.jivesoftware.smack.packet.IQ