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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
assertNotEmpty
(String input, String message) void
execute
(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response) getName()
getNode()
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
-
-
Method Details
-
getName
- Specified by:
getName
in interfacetigase.component.adhoc.AdHocCommand
-
getNode
- Specified by:
getNode
in 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:
execute
in 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
-