public class RenameGroupCommand extends PostCommand<RenameGroupResponse>
Command.CommonParameters, Command.ResponseCONTENT_TYPE_JSON| Constructor and Description |
|---|
RenameGroupCommand(int groupId,
java.lang.String newName) |
RenameGroupCommand(RenameGroupCommand source) |
| Modifier and Type | Method and Description |
|---|---|
PostCommand |
copy()
Returns a copy of this object.
|
protected RenameGroupResponse |
createResponse(java.lang.String text,
int status,
java.lang.String contentType,
org.json.simple.JSONObject json)
Creates an instance of the response class, initialized with
the response text, the HTTP status code, and parsed JSONObject.
|
int |
getGroupId() |
org.json.simple.JSONObject |
getJsonObject()
Returns the JSON object to post, or null if the JSON object
has not yet been set.
|
java.lang.String |
getNewName() |
void |
setGroupId(int groupId) |
void |
setNewName(java.lang.String newName) |
createMethod, setJsonObject_execute, execute, getActionName, getActionUrl, getControllerName, getHttpMethod, getParameters, getParamValueAsString, getQueryString, getRequiredVersion, getTimeout, setParameters, setRequiredVersion, setTimeoutpublic RenameGroupCommand(int groupId,
java.lang.String newName)
public RenameGroupCommand(RenameGroupCommand source)
public PostCommand copy()
Commandcopy in class PostCommand<RenameGroupResponse>public int getGroupId()
public void setGroupId(int groupId)
public java.lang.String getNewName()
public void setNewName(java.lang.String newName)
public org.json.simple.JSONObject getJsonObject()
PostCommandgetJsonObject in class PostCommand<RenameGroupResponse>protected RenameGroupResponse createResponse(java.lang.String text, int status, java.lang.String contentType, org.json.simple.JSONObject json)
CommandOverride this method to create an instance of a different class that extends CommandResponse
createResponse in class Command<RenameGroupResponse>text - The response text from the server.status - The HTTP status code.contentType - The Content-Type header value.json - The parsed JSONObject (or null if no JSON was returned).