public class StreamInitiation extends 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.
|
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
Constructor and Description |
---|
StreamInitiation() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
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.
|
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, 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 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()
public java.lang.String getChildElementXML()
IQ
Extensions of this class must override this method.
getChildElementXML
in class IQ