public class StreamInitiation
extends org.jivesoftware.smack.packet.IQ
Modifier and Type | Class and Description |
---|---|
class |
StreamInitiation.Feature
The feature negotiation portion of the StreamInitiation packet.
|
static class |
StreamInitiation.File
size: The size, in bytes, of the data to be sent.
name: The name of the file that the Sender wishes to send.
date: The last modification time of the file.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
Constructor and Description |
---|
StreamInitiation() |
Modifier and Type | Method and Description |
---|---|
DataForm |
getFeatureNegotiationForm()
Returns the data form which contains the valid methods of stream
neotiation and transfer.
|
StreamInitiation.File |
getFile()
Returns the file containing the information about the request.
|
protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder |
getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder buf) |
java.lang.String |
getMimeType()
Identifies the type of file that is desired to be transfered.
|
java.lang.String |
getSessionID()
Uniquely identifies a stream initiation to the recipient.
|
void |
setFeatureNegotiationForm(DataForm form)
Sets the data form which contains the valid methods of stream neotiation
and transfer.
|
void |
setFile(StreamInitiation.File file)
Sets the file which contains the information pertaining to the file to be
transfered.
|
void |
setMimeType(java.lang.String mimeType)
The "mime-type" attribute identifies the MIME-type for the data across
the stream.
|
void |
setSessionID(java.lang.String id)
The "id" attribute is an opaque identifier.
|
createErrorResponse, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementXML, getType, initialzeAsResultFor, isRequestIQ, setType, toString, toXML
addCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setFrom, setLanguage, setPacketID, setStanzaId, setStanzaId, setTo, setTo
public static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public void setSessionID(java.lang.String id)
id
- The "id" attribute.public java.lang.String getSessionID()
setSessionID(String)
public void setMimeType(java.lang.String mimeType)
mimeType
- The valid mime-type.public java.lang.String getMimeType()
setMimeType(String)
public void setFile(StreamInitiation.File file)
file
- The file identified by the stream initiator to be sent.public StreamInitiation.File getFile()
public void setFeatureNegotiationForm(DataForm form)
form
- The dataform containing the methods.public DataForm getFeatureNegotiationForm()
protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder buf)
getIQChildElementBuilder
in class org.jivesoftware.smack.packet.IQ