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
public abstract static class AdHocCommandHandler.SingleStage extends AdHocCommandHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jivesoftware.smackx.commands.AdHocCommandHandler
AdHocCommandHandler.SingleStage
-
-
Constructor Summary
Constructors Constructor Description SingleStage(java.lang.String node, java.lang.String name, java.lang.String sessionId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcancel()Cancels the execution of the command.AdHocCommandDatacomplete(AdHocCommandDataBuilder response, SubmitForm submittedForm)protected AdHocCommandDataexecute(AdHocCommandDataBuilder response)protected abstract AdHocCommandDataexecuteSingleStage(AdHocCommandDataBuilder response)AdHocCommandDatanext(AdHocCommandDataBuilder response, SubmitForm submittedForm)AdHocCommandDataprev(AdHocCommandDataBuilder response)-
Methods inherited from class org.jivesoftware.smackx.commands.AdHocCommandHandler
getCreationDate, getCurrentStage, hasPermission, newBadRequestException, newXmppErrorException, newXmppErrorException
-
Methods inherited from class org.jivesoftware.smackx.commands.AbstractAdHocCommand
getActions, getExecuteAction, getLastRequest, getLastResult, getName, getNode, getNotes, getSessionId, getSpecificErrorCondition, getStatus, isCompleted, isValidAction, setSessionId
-
-
-
-
Method Detail
-
executeSingleStage
protected abstract AdHocCommandData executeSingleStage(AdHocCommandDataBuilder response) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
execute
protected final AdHocCommandData execute(AdHocCommandDataBuilder response) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
- Specified by:
executein classAdHocCommandHandler- Throws:
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
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, java.lang.InterruptedException
- Specified by:
nextin classAdHocCommandHandler- Throws:
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
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, java.lang.InterruptedException
- Specified by:
completein classAdHocCommandHandler- Throws:
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
prev
public final AdHocCommandData prev(AdHocCommandDataBuilder response) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
- Specified by:
previn classAdHocCommandHandler- Throws:
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
cancel
public final void cancel() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.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.java.lang.InterruptedException- if the calling thread was interrupted.
-
-