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 org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
execute
protected final AdHocCommandData execute(AdHocCommandDataBuilder response) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Specified by:
executein classAdHocCommandHandler- Throws:
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
next
public final AdHocCommandData next(AdHocCommandDataBuilder response, SubmitForm submittedForm) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Specified by:
nextin classAdHocCommandHandler- Throws:
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
complete
public final AdHocCommandData complete(AdHocCommandDataBuilder response, SubmitForm submittedForm) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Specified by:
completein classAdHocCommandHandler- Throws:
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
prev
public final AdHocCommandData prev(AdHocCommandDataBuilder response) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Specified by:
previn classAdHocCommandHandler- Throws:
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
cancel
public final void cancel() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.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:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there is a problem executing the command.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.InterruptedException- if the calling thread was interrupted.
-