Package org.jivesoftware.smackx.commands
Class AdHocCommandHandler.SingleStage
java.lang.Object
org.jivesoftware.smackx.commands.AbstractAdHocCommand
org.jivesoftware.smackx.commands.AdHocCommandHandler
org.jivesoftware.smackx.commands.AdHocCommandHandler.SingleStage
- Enclosing class:
- AdHocCommandHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jivesoftware.smackx.commands.AdHocCommandHandler
AdHocCommandHandler.SingleStage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcancel()Cancels the execution of the command.final AdHocCommandDatacomplete(AdHocCommandDataBuilder response, SubmitForm submittedForm) protected final AdHocCommandDataexecute(AdHocCommandDataBuilder response) protected abstract AdHocCommandDataexecuteSingleStage(AdHocCommandDataBuilder response) final AdHocCommandDatanext(AdHocCommandDataBuilder response, SubmitForm submittedForm) final AdHocCommandDataprev(AdHocCommandDataBuilder response) Methods inherited from class org.jivesoftware.smackx.commands.AdHocCommandHandler
getCreationDate, getCurrentStage, hasPermission, newBadRequestException, newXmppErrorException, newXmppErrorExceptionMethods inherited from class org.jivesoftware.smackx.commands.AbstractAdHocCommand
getActions, getExecuteAction, getLastRequest, getLastResult, getName, getNode, getNotes, getSessionId, getSpecificErrorCondition, getStatus, isCompleted, isValidAction, setSessionId
-
Constructor Details
-
SingleStage
-
-
Method Details
-
executeSingleStage
protected abstract AdHocCommandData executeSingleStage(AdHocCommandDataBuilder response) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException -
execute
protected final AdHocCommandData execute(AdHocCommandDataBuilder response) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException -
next
public final AdHocCommandData next(AdHocCommandDataBuilder response, SubmitForm submittedForm) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException -
complete
public final AdHocCommandData complete(AdHocCommandDataBuilder response, SubmitForm submittedForm) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException -
prev
-
cancel
public final void cancel() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedExceptionDescription copied from class:AbstractAdHocCommandCancels the execution of the command. This can be invoked on any stage of the execution. If there is a problem executing the command it throws an XMPPException.- Specified by:
cancelin classAbstractAdHocCommand- Throws:
SmackException.NoResponseException- if there was no response from the remote entity.XMPPException.XMPPErrorException- if there is a problem executing the command.SmackException.NotConnectedException- if the XMPP connection is not connected.InterruptedException- if the calling thread was interrupted.
-