public class ControlCommand extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ControlCommand.Action
Actions available to the controller
|
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT |
static String |
ENDPOINT_PREFIX |
Constructor and Description |
---|
ControlCommand(ControlCommand.Action action) |
ControlCommand(ControlCommand.Action action,
String param) |
Modifier and Type | Method and Description |
---|---|
static String |
createCommandUri(ControlCommand.Action action,
String parameter)
Create a REST command uri.
|
ControlCommand.Action |
getAction() |
protected String |
getParameter() |
static ControlCommand |
parseUri(String commandUri)
Parse a Uri into the required Command action and parameter.
|
public static final String ENDPOINT
public static final String ENDPOINT_PREFIX
public ControlCommand(ControlCommand.Action action)
public ControlCommand(ControlCommand.Action action, String param)
public ControlCommand.Action getAction()
protected String getParameter()
public static String createCommandUri(ControlCommand.Action action, String parameter)
action
- The 'verb' of the command.parameter
- The optional parameter.public static ControlCommand parseUri(String commandUri)
commandUri
- the properly formatted Uri.Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.