Package tigase.mix.adhoc
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected StringassertNotEmpty(String input, String message) voidexecute(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response) getName()getNode()protected abstract tigase.xml.ElementprepareForm(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response) protected abstract tigase.xml.ElementsubmitForm(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, waitMethods inherited from interface tigase.component.adhoc.AdHocCommand
execute, getGroup, isAllowedFor
-
Constructor Details
-
AbstractAdhocCommand
-
-
Method Details
-
getName
- Specified by:
getNamein interfacetigase.component.adhoc.AdHocCommand
-
getNode
- Specified by:
getNodein interfacetigase.component.adhoc.AdHocCommand
-
execute
public void execute(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response) throws tigase.component.adhoc.AdHocCommandException - Specified by:
executein interfacetigase.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
-