public class SaveAssayBatchCommand extends PostCommand<SaveAssayBatchResponse>
Command.CommonParameters, Command.Response
CONTENT_TYPE_JSON
Constructor and Description |
---|
SaveAssayBatchCommand(int assayId) |
SaveAssayBatchCommand(int assayId,
Batch batch) |
Modifier and Type | Method and Description |
---|---|
SaveAssayBatchCommand |
copy()
Returns a copy of this object.
|
protected SaveAssayBatchResponse |
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.
|
createRequest, setJsonObject
_execute, checkThrowError, execute, getActionName, getActionUrl, getControllerName, getHttpRequest, getParameters, getParamValueAsString, getQueryString, getRequiredVersion, getTimeout, setParameters, setRequiredVersion, setTimeout
public SaveAssayBatchCommand(int assayId)
assayId
- the id of the assay definition on the web serverpublic SaveAssayBatchCommand(int assayId, Batch batch)
assayId
- the id of the assay definition on the web serverbatch
- the batch object to be savedpublic SaveAssayBatchCommand copy()
Command
copy
in class PostCommand<SaveAssayBatchResponse>
public org.json.simple.JSONObject getJsonObject()
PostCommand
getJsonObject
in class PostCommand<SaveAssayBatchResponse>
protected SaveAssayBatchResponse 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<SaveAssayBatchResponse>
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).