Class AbstractAdhocCommand

java.lang.Object
tigase.mix.adhoc.AbstractAdhocCommand
All Implemented Interfaces:
tigase.component.adhoc.AdHocCommand
Direct Known Subclasses:
AbstractMIXAdhocCommand, JoinChannelCommand, LeaveChannelCommand

public abstract class AbstractAdhocCommand extends Object implements tigase.component.adhoc.AdHocCommand
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    assertNotEmpty(String input, String message)
     
    void
    execute(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response)
     
     
     
    protected abstract tigase.xml.Element
    prepareForm(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response)
     
    protected abstract tigase.xml.Element
    submitForm(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response, tigase.xml.Element data)
     

    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, isAllowedFor
  • Constructor Details

    • AbstractAdhocCommand

      protected AbstractAdhocCommand(String node, String name)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface tigase.component.adhoc.AdHocCommand
    • getNode

      public String getNode()
      Specified by:
      getNode in interface tigase.component.adhoc.AdHocCommand
    • 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.xml.Element 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.xml.Element submitForm(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response, tigase.xml.Element data) throws tigase.component.adhoc.AdHocCommandException
      Throws:
      tigase.component.adhoc.AdHocCommandException
    • assertNotEmpty

      protected String assertNotEmpty(String input, String message) throws tigase.component.adhoc.AdHocCommandException
      Throws:
      tigase.component.adhoc.AdHocCommandException