Package org.labkey.remoteapi.storage
Class StorageCommandResponse
java.lang.Object
org.labkey.remoteapi.CommandResponse
org.labkey.remoteapi.storage.StorageCommandResponse
Response object used for the storage
CreateCommand
, UpdateCommand
, and DeleteCommand
.
The response object will include a string message and a data object with the
properties from the relevant storage item from the command.-
Constructor Summary
ConstructorsConstructorDescriptionStorageCommandResponse
(String text, int statusCode, String contentType, org.json.JSONObject json) Constructs a new StorageCommandResponse, initialized with the provided response text and status code. -
Method Summary
Methods inherited from class org.labkey.remoteapi.CommandResponse
findObject, getContentType, getParsedData, getProperty, getProperty, getStatusCode, getText
-
Constructor Details
-
StorageCommandResponse
public StorageCommandResponse(String text, int statusCode, String contentType, org.json.JSONObject json) Constructs a new StorageCommandResponse, initialized with the provided response text and status code.- Parameters:
text
- The response textstatusCode
- The HTTP status codecontentType
- The response content typejson
- The parsed JSONObject (or null if JSON was not returned)
-
-
Method Details
-
getMessage
Returns the success message for the command.- Returns:
- The success message string.
-
getData
Returns the data object with properties from the newly created storage item.- Returns:
- A map of the key value pairs for the storage item.
-
getRowId
-