Package org.labkey.remoteapi.assay
Class GetProtocolCommand
java.lang.Object
org.labkey.remoteapi.Command<ResponseType,org.apache.hc.client5.http.classic.methods.HttpGet>
- All Implemented Interfaces:
HasRequiredVersion
-
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
ConstructorsConstructorDescriptionGetProtocolCommand
(long protocolId) GetProtocolCommand
(long protocolId, boolean copy) GetProtocolCommand
(String providerName) -
Method Summary
Modifier and TypeMethodDescriptionReturns a new, mutable parameter map.protected ProtocolResponse
createResponse
(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.getCopy()
void
void
setProtocolId
(long protocolId) void
setProviderName
(String providerName) Methods inherited from class org.labkey.remoteapi.GetCommand
createRequest
Methods inherited from class org.labkey.remoteapi.Command
_execute, execute, getActionName, getControllerName, getHttpRequest, getParameters, getParamValueAsString, getRequiredVersion, getTimeout, setRequiredVersion, setTimeout
-
Constructor Details
-
GetProtocolCommand
-
GetProtocolCommand
public GetProtocolCommand(long protocolId) -
GetProtocolCommand
public GetProtocolCommand(long protocolId, boolean copy)
-
-
Method Details
-
createParameterMap
Description copied from class:Command
Returns a new, mutable parameter map. Derived classes will typically override this method to put values passed to specialized setter methods into the map.- Overrides:
createParameterMap
in classCommand<ProtocolResponse,
org.apache.hc.client5.http.classic.methods.HttpGet> - Returns:
- The parameter map to use when building the URL.
-
createResponse
protected ProtocolResponse createResponse(String text, int status, String contentType, org.json.JSONObject json) Description copied from class:Command
Creates 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:
createResponse
in classCommand<ProtocolResponse,
org.apache.hc.client5.http.classic.methods.HttpGet> - 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.
-
getProviderName
-
setProviderName
-
getProtocolId
-
setProtocolId
public void setProtocolId(long protocolId) -
getCopy
-
setCopy
-