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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.component.adhoc.AdHocCommand
execute, getDefaultACL, getGroup, isAllowedFor, isAllowedFor, isForSelf
-
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
-