|
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.AdHocCommandData
public class AdHocCommandData
Represents the state and the request of the execution of an adhoc command.
Nested Class Summary | |
---|---|
static class |
AdHocCommandData.SpecificError
|
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 | |
---|---|
AdHocCommandData()
|
Method Summary | |
---|---|
void |
addAction(AdHocCommand.Action action)
|
void |
addNote(AdHocCommandNote note)
|
AdHocCommand.Action |
getAction()
Returns the action to execute. |
List<AdHocCommand.Action> |
getActions()
|
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there isn't one. |
AdHocCommand.Action |
getExecuteAction()
|
DataForm |
getForm()
Returns the form of the command. |
String |
getId()
Returns the JID of the command host. |
String |
getName()
Returns the human name of the command |
String |
getNode()
Returns the identifier of the command |
List<AdHocCommandNote> |
getNotes()
Returns the list of notes that the command has. |
String |
getSessionID()
|
AdHocCommand.Status |
getStatus()
Returns the status of the execution. |
void |
remveNote(AdHocCommandNote note)
|
void |
setAction(AdHocCommand.Action action)
|
void |
setExecuteAction(AdHocCommand.Action executeAction)
|
void |
setForm(DataForm form)
|
void |
setId(String id)
|
void |
setName(String name)
|
void |
setNode(String node)
|
void |
setSessionID(String sessionID)
|
void |
setStatus(AdHocCommand.Status status)
|
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 AdHocCommandData()
Method Detail |
---|
public String getChildElementXML()
IQ
Extensions of this class must override this method.
getChildElementXML
in class IQ
public String getId()
public void setId(String id)
public String getName()
public void setName(String name)
public String getNode()
public void setNode(String node)
public List<AdHocCommandNote> getNotes()
public void addNote(AdHocCommandNote note)
public void remveNote(AdHocCommandNote note)
public DataForm getForm()
public void setForm(DataForm form)
public AdHocCommand.Action getAction()
public void setAction(AdHocCommand.Action action)
public AdHocCommand.Status getStatus()
public void setStatus(AdHocCommand.Status status)
public List<AdHocCommand.Action> getActions()
public void addAction(AdHocCommand.Action action)
public void setExecuteAction(AdHocCommand.Action executeAction)
public AdHocCommand.Action getExecuteAction()
public void setSessionID(String sessionID)
public String getSessionID()
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |