public class Open
extends org.jivesoftware.smack.packet.IQ
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
| 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.
|
org.jivesoftware.smack.util.XmlStringBuilder |
getChildElementXML() |
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, getType, setType, toXMLaddCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getTo, hashCode, removeExtension, setError, setFrom, setLanguage, setPacketID, setTo, toStringpublic static final java.lang.String ELEMENT
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()
public org.jivesoftware.smack.util.XmlStringBuilder getChildElementXML()
getChildElementXML in class org.jivesoftware.smack.packet.IQ