public class CreateContainerCommand extends PostCommand<CreateContainerResponse>
Command.CommonParameters, Command.Response
CONTENT_TYPE_JSON
Constructor and Description |
---|
CreateContainerCommand(CreateContainerCommand source) |
CreateContainerCommand(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
CreateContainerCommand |
copy()
Returns a copy of this object.
|
protected CreateContainerResponse |
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.
|
java.lang.String |
getDescription() |
java.lang.String |
getFolderType() |
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() |
java.lang.String |
getTitle() |
boolean |
isWorkbook() |
void |
setDescription(java.lang.String description) |
void |
setFolderType(java.lang.String folderType) |
void |
setName(java.lang.String name) |
void |
setTitle(java.lang.String title) |
void |
setWorkbook(boolean workbook) |
createRequest, setJsonObject
_execute, checkThrowError, execute, getActionName, getActionUrl, getControllerName, getHttpRequest, getParameters, getParamValueAsString, getQueryString, getRequiredVersion, getTimeout, setParameters, setRequiredVersion, setTimeout
public CreateContainerCommand(CreateContainerCommand source)
public CreateContainerCommand(java.lang.String name)
name
- the name of the container to createpublic org.json.simple.JSONObject getJsonObject()
PostCommand
getJsonObject
in class PostCommand<CreateContainerResponse>
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public boolean isWorkbook()
public void setWorkbook(boolean workbook)
public java.lang.String getFolderType()
public void setFolderType(java.lang.String folderType)
protected CreateContainerResponse 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<CreateContainerResponse>
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 CreateContainerCommand copy()
Command
copy
in class PostCommand<CreateContainerResponse>