Class ClientCommand
java.lang.Object
org.jolokia.server.core.request.notification.NotificationCommand
org.jolokia.server.core.request.notification.ClientCommand
- Direct Known Subclasses:
AddCommand,ListCommand,OpenCommand,PingCommand,RemoveCommand,UnregisterCommand
A base command which should be subclassed by every command
requiring 'client' attribute.
- Since:
- 19.03.13
- Author:
- roland
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientCommand(NotificationCommandType pType, Map<String, ?> pMap) Constructor for POST requests.protectedClientCommand(NotificationCommandType pType, Stack<String> pStack) Constructor used for GET requests. -
Method Summary
Methods inherited from class org.jolokia.server.core.request.notification.NotificationCommand
getType
-
Constructor Details
-
ClientCommand
Constructor used for GET requests. If no client id is given as first part of the path anIllegalArgumentExceptionis thrown.- Parameters:
pType- command typepStack- stack which on top must hold the client id
-
ClientCommand
Constructor for POST requests. If no client is given under the key "client" anIllegalArgumentExceptionis thrown- Parameters:
pType- command typepMap- map holding the request
-
-
Method Details
-
getClient
-
toJSON
public org.json.simple.JSONObject toJSON()Description copied from class:NotificationCommand- Overrides:
toJSONin classNotificationCommand
-