Package org.labkey.remoteapi.storage
Class BaseStorageCommand
java.lang.Object
org.labkey.remoteapi.Command<ResponseType,org.apache.hc.client5.http.classic.methods.HttpPost>
 
org.labkey.remoteapi.PostCommand<StorageCommandResponse>
org.labkey.remoteapi.storage.BaseStorageCommand
- All Implemented Interfaces:
 HasRequiredVersion
- Direct Known Subclasses:
 CreateCommand,DeleteCommand,UpdateCommand
- 
Nested Class Summary
Nested classes/interfaces inherited from class org.labkey.remoteapi.Command
Command.CommonParameters, Command.Response - 
Field Summary
Fields inherited from class org.labkey.remoteapi.Command
CONTENT_TYPE_JSON - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected StorageCommandResponsecreateResponse(String text, int status, String contentType, org.json.JSONObject json) Creates an instance of the response class, initialized with the response text, the HTTP status code, and parsed JSONObject.org.json.JSONObjectDynamically builds the JSON object to send based on the storageRow.doubleReturns the required version number of this API call.Methods inherited from class org.labkey.remoteapi.PostCommand
createRequestMethods inherited from class org.labkey.remoteapi.Command
_execute, createParameterMap, execute, getActionName, getControllerName, getHttpRequest, getParameters, getParamValueAsString, getTimeout, setRequiredVersion, setTimeout 
- 
Constructor Details
- 
BaseStorageCommand
 
 - 
 - 
Method Details
- 
getRequiredVersion
public double getRequiredVersion()Description copied from class:CommandReturns the required version number of this API call.- Specified by:
 getRequiredVersionin interfaceHasRequiredVersion- Overrides:
 getRequiredVersionin classCommand<StorageCommandResponse,org.apache.hc.client5.http.classic.methods.HttpPost> - Returns:
 - The required version number
 
 - 
createResponse
protected StorageCommandResponse createResponse(String text, int status, String contentType, org.json.JSONObject json) Description copied from class:CommandCreates an instance of the response class, initialized with the response text, the HTTP status code, and parsed JSONObject.Override this method to create an instance of a different class that extends CommandResponse
- Overrides:
 createResponsein classCommand<StorageCommandResponse,org.apache.hc.client5.http.classic.methods.HttpPost> - Parameters:
 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).- Returns:
 - An instance of the response object.
 
 - 
getJsonObject
public org.json.JSONObject getJsonObject()Dynamically builds the JSON object to send based on the storageRow.- Overrides:
 getJsonObjectin classPostCommand<StorageCommandResponse>- Returns:
 - The JSON object to send.
 
 
 -