Class AbstractAdHocCommand

  • All Implemented Interfaces:
    tigase.component.adhoc.AdHocCommand
    Direct Known Subclasses:
    RegisterDevice, SetAPNSCertificate, UnregisterDevice

    public abstract class AbstractAdHocCommand
    extends java.lang.Object
    implements tigase.component.adhoc.AdHocCommand
    Created by andrzej on 02.01.2017.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response)  
      protected abstract tigase.form.Form prepareForm​(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response)  
      protected abstract tigase.form.Form submitForm​(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response, tigase.form.Form form)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface tigase.component.adhoc.AdHocCommand

        execute, getGroup, getName, getNode, isAllowedFor
    • Constructor Detail

      • AbstractAdHocCommand

        public AbstractAdHocCommand()
    • Method Detail

      • execute

        public void execute​(tigase.component.adhoc.AdhHocRequest request,
                            tigase.component.adhoc.AdHocResponse response)
                     throws tigase.component.adhoc.AdHocCommandException
        Specified by:
        execute in interface tigase.component.adhoc.AdHocCommand
        Throws:
        tigase.component.adhoc.AdHocCommandException
      • prepareForm

        protected abstract tigase.form.Form prepareForm​(tigase.component.adhoc.AdhHocRequest request,
                                                        tigase.component.adhoc.AdHocResponse response)
                                                 throws tigase.component.adhoc.AdHocCommandException
        Throws:
        tigase.component.adhoc.AdHocCommandException
      • submitForm

        protected abstract tigase.form.Form submitForm​(tigase.component.adhoc.AdhHocRequest request,
                                                       tigase.component.adhoc.AdHocResponse response,
                                                       tigase.form.Form form)
                                                throws tigase.component.adhoc.AdHocCommandException
        Throws:
        tigase.component.adhoc.AdHocCommandException