public class RenameGroupCommand extends PostCommand<RenameGroupResponse>
Command.CommonParameters, Command.Response
CONTENT_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) |
createRequest, setJsonObject
_execute, checkThrowError, execute, getActionName, getActionUrl, getControllerName, getHttpRequest, getParameters, getParamValueAsString, getQueryString, getRequiredVersion, getTimeout, setParameters, setRequiredVersion, setTimeout
public RenameGroupCommand(int groupId, java.lang.String newName)
public RenameGroupCommand(RenameGroupCommand source)
public PostCommand copy()
Command
copy
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()
PostCommand
getJsonObject
in class PostCommand<RenameGroupResponse>
protected RenameGroupResponse createResponse(java.lang.String text, int status, java.lang.String contentType, org.json.simple.JSONObject json)
Command
Override 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).