Package tigase.xmpp.impl.push
Class PushNotifications.AbstractAdhocCommand
java.lang.Object
tigase.xmpp.impl.push.PushNotifications.AbstractAdhocCommand
- All Implemented Interfaces:
AdHocCommand
- Direct Known Subclasses:
PushNotifications.DisableDeviceAdHocCommand,PushNotifications.ListDevicesAdhocCommand
- Enclosing class:
PushNotifications
protected abstract static class PushNotifications.AbstractAdhocCommand
extends Object
implements AdHocCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringassertNotEmpty(String input, String message) voidexecute(AdhHocRequest request, AdHocResponse response) getName()getNode()booleanisAllowedFor(JID jid) protected booleanprotected abstract FormprepareForm(AdhHocRequest request, AdHocResponse response) protected abstract FormsubmitForm(AdhHocRequest request, AdHocResponse response, Form form) 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, isForSelf
-
Constructor Details
-
AbstractAdhocCommand
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceAdHocCommand
-
getNode
- Specified by:
getNodein interfaceAdHocCommand
-
execute
- Specified by:
executein interfaceAdHocCommand- Throws:
AdHocCommandException
-
prepareForm
protected abstract Form prepareForm(AdhHocRequest request, AdHocResponse response) throws AdHocCommandException - Throws:
AdHocCommandException
-
submitForm
protected abstract Form submitForm(AdhHocRequest request, AdHocResponse response, Form form) throws AdHocCommandException - Throws:
AdHocCommandException
-
isEmpty
-
assertNotEmpty
- Throws:
AdHocCommandException
-
isAllowedFor
- Specified by:
isAllowedForin interfaceAdHocCommand
-
getComponent
-
getPushNotifications
-