public class CreateGroupCommand extends PostCommand<CreateGroupResponse>
Command.CommonParameters, Command.Response
CONTENT_TYPE_JSON
Constructor and Description |
---|
CreateGroupCommand(CreateGroupCommand source) |
CreateGroupCommand(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
PostCommand |
copy()
Returns a copy of this object.
|
protected CreateGroupResponse |
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.
|
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 |
getName() |
void |
setName(java.lang.String name) |
createRequest, setJsonObject
_execute, checkThrowError, execute, getActionName, getActionUrl, getControllerName, getHttpRequest, getParameters, getParamValueAsString, getQueryString, getRequiredVersion, getTimeout, setParameters, setRequiredVersion, setTimeout
public CreateGroupCommand(java.lang.String name)
public CreateGroupCommand(CreateGroupCommand source)
public java.lang.String getName()
public void setName(java.lang.String name)
protected CreateGroupResponse 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<CreateGroupResponse>
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).public PostCommand copy()
Command
copy
in class PostCommand<CreateGroupResponse>
public org.json.simple.JSONObject getJsonObject()
PostCommand
getJsonObject
in class PostCommand<CreateGroupResponse>