|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smack.packet.Packet
org.jivesoftware.smack.packet.IQ
org.jivesoftware.smackx.packet.StreamInitiation
public class StreamInitiation
The process by which two entities initiate a stream.
Nested Class Summary | |
---|---|
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. |
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ |
---|
IQ.Type |
Field Summary |
---|
Fields inherited from class org.jivesoftware.smack.packet.Packet |
---|
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE |
Constructor Summary | |
---|---|
StreamInitiation()
|
Method Summary | |
---|---|
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. |
String |
getMimeType()
Identifies the type of file that is desired to be transfered. |
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(String mimeType)
The "mime-type" attribute identifies the MIME-type for the data across the stream. |
void |
setSesssionID(String id)
The "id" attribute is an opaque identifier. |
Methods inherited from class org.jivesoftware.smack.packet.IQ |
---|
getType, setType, toXML |
Methods inherited from class org.jivesoftware.smack.packet.Packet |
---|
addExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, parseXMLLang, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamInitiation()
Method Detail |
---|
public void setSesssionID(String id)
id
- The "id" attribute.public String getSessionID()
setSesssionID(String)
public void setMimeType(String mimeType)
mimeType
- The valid mime-type.public 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 String getChildElementXML()
IQ
Extensions of this class must override this method.
getChildElementXML
in class IQ
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |