DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
Constructor and Description |
---|
Open(String sessionID,
int blockSize)
Creates a new In-Band Bytestream open request packet.
|
Open(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.
|
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
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, toXML
addCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toString
public Open(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(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 String getSessionID()
public int getBlockSize()
public InBandBytestreamManager.StanzaType getStanza()
public String getChildElementXML()
IQ
Extensions of this class must override this method.
getChildElementXML
in class IQ