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 String
assertNotEmpty
(String input, String message) void
execute
(AdhHocRequest request, AdHocResponse response) getName()
getNode()
boolean
isAllowedFor
(JID jid) protected boolean
protected abstract Form
prepareForm
(AdhHocRequest request, AdHocResponse response) protected abstract Form
submitForm
(AdhHocRequest request, AdHocResponse response, Form form) 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, isForSelf
-
Constructor Details
-
AbstractAdhocCommand
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceAdHocCommand
-
getNode
- Specified by:
getNode
in interfaceAdHocCommand
-
execute
- Specified by:
execute
in 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:
isAllowedFor
in interfaceAdHocCommand
-
getComponent
-
getPushNotifications
-