Class AdHocCommandDataBuilder
java.lang.Object
org.jivesoftware.smack.packet.StanzaBuilder<IB>
org.jivesoftware.smack.packet.AbstractIqBuilder<IB>
org.jivesoftware.smack.packet.IqBuilder<AdHocCommandDataBuilder,AdHocCommandData>
 
org.jivesoftware.smackx.commands.packet.AdHocCommandDataBuilder
- All Implemented Interfaces:
 IqView,StanzaView,XmlLangElement,AdHocCommandDataView
public class AdHocCommandDataBuilder
extends IqBuilder<AdHocCommandDataBuilder,AdHocCommandData>
implements AdHocCommandDataView 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum - 
Field Summary
Fields inherited from class org.jivesoftware.smack.packet.AbstractIqBuilder
type - 
Method Summary
Modifier and TypeMethodDescriptionaddNote(AdHocCommandNote note) build()static AdHocCommandDataBuilderbuildResponseFor(AdHocCommandData request) static AdHocCommandDataBuilderbuildResponseFor(AdHocCommandData request, IQ.ResponseType responseType) Returns the action to execute.getForm()Returns the form of the command.getName()Returns the human name of the command.getNode()Returns the identifier of the command.getNotes()Returns the list of notes that the command has.Returns the status of the execution.getThis()setAction(AdHocCommandData.Action action) setSessionId(String sessionId) setStatus(AdHocCommandData.Status status) setStatusExecuting(AdHocCommandDataBuilder.PreviousStage previousStage, AdHocCommandDataBuilder.NextStage nextStage) Methods inherited from class org.jivesoftware.smack.packet.AbstractIqBuilder
addStanzaSpecificAttributes, createErrorResponse, createResponse, createResponse, getTypeMethods inherited from class org.jivesoftware.smack.packet.StanzaBuilder
addExtension, addExtensions, addOptExtensions, buildIqData, buildMessage, buildMessage, buildMessageFrom, buildMessageFrom, buildPresence, buildPresence, buildPresenceFrom, buildPresenceFrom, buildResponse, from, from, getError, getExtension, getExtensions, getExtensions, getExtensions, getFrom, getLanguage, getStanzaId, getTo, overrideExtension, removeExtension, removeExtension, setError, setLanguage, throwIfNoStanzaId, to, to, toString, willBuildStanzaWithIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jivesoftware.smackx.commands.packet.AdHocCommandDataView
isCompleted, isExecutingMethods inherited from interface org.jivesoftware.smack.packet.IqView
getType, isRequestIQ, isResponseIQMethods inherited from interface org.jivesoftware.smack.packet.StanzaView
getError, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getFrom, getStanzaId, getTo, hasExtension, hasExtension, hasExtensionMethods inherited from interface org.jivesoftware.smack.packet.XmlLangElement
getLanguage 
- 
Method Details
- 
getNode
Description copied from interface:AdHocCommandDataViewReturns the identifier of the command.- Specified by:
 getNodein interfaceAdHocCommandDataView- Returns:
 - the node.
 
 - 
getName
Description copied from interface:AdHocCommandDataViewReturns the human name of the command.- Specified by:
 getNamein interfaceAdHocCommandDataView- Returns:
 - the name of the command.
 
 - 
setName
 - 
getSessionId
- Specified by:
 getSessionIdin interfaceAdHocCommandDataView
 - 
setSessionId
 - 
getNotes
Description copied from interface:AdHocCommandDataViewReturns the list of notes that the command has.- Specified by:
 getNotesin interfaceAdHocCommandDataView- Returns:
 - the notes.
 
 - 
addNote
 - 
getForm
Description copied from interface:AdHocCommandDataViewReturns the form of the command.- Specified by:
 getFormin interfaceAdHocCommandDataView- Returns:
 - the data form associated with the command.
 
 - 
setForm
 - 
getAction
Description copied from interface:AdHocCommandDataViewReturns the action to execute. The action is set only on a request.- Specified by:
 getActionin interfaceAdHocCommandDataView- Returns:
 - the action to execute.
 
 - 
setAction
 - 
getStatus
Description copied from interface:AdHocCommandDataViewReturns the status of the execution.- Specified by:
 getStatusin interfaceAdHocCommandDataView- Returns:
 - the status.
 
 - 
setStatus
 - 
setStatusCompleted
 - 
setStatusExecuting
public AdHocCommandDataBuilder setStatusExecuting(AdHocCommandDataBuilder.PreviousStage previousStage, AdHocCommandDataBuilder.NextStage nextStage)  - 
getActions
- Specified by:
 getActionsin interfaceAdHocCommandDataView
 - 
addAction
 - 
getExecuteAction
- Specified by:
 getExecuteActionin interfaceAdHocCommandDataView
 - 
setExecuteAction
 - 
build
- Specified by:
 buildin classIqBuilder<AdHocCommandDataBuilder,AdHocCommandData> 
 - 
getThis
- Specified by:
 getThisin classStanzaBuilder<AdHocCommandDataBuilder>
 - 
buildResponseFor
 - 
buildResponseFor
public static AdHocCommandDataBuilder buildResponseFor(AdHocCommandData request, IQ.ResponseType responseType)  
 -