Class SimplePostCommand

java.lang.Object
org.labkey.remoteapi.Command<ResponseType,org.apache.hc.client5.http.classic.methods.HttpPost>
org.labkey.remoteapi.PostCommand<CommandResponse>
org.labkey.remoteapi.SimplePostCommand
All Implemented Interfaces:
HasRequiredVersion

public class SimplePostCommand extends PostCommand<CommandResponse>
  • Constructor Details

    • SimplePostCommand

      public SimplePostCommand(String controllerName, String actionName)
  • Method Details

    • getJsonObject

      public org.json.JSONObject getJsonObject()
      Returns the JSON object to post or null for no JSON.
      Overrides:
      getJsonObject in class PostCommand<CommandResponse>
      Returns:
      The JSON object to post.
    • setJsonObject

      public void setJsonObject(org.json.JSONObject jsonObject)
      Sets the JSON object to post.
      Parameters:
      jsonObject - The JSON object to post
    • createParameterMap

      protected Map<String,Object> createParameterMap()
      Returns a new, mutable parameter map initialized with the values from the map passed to setParameters(Map) method, if any.
      Overrides:
      createParameterMap in class Command<CommandResponse,org.apache.hc.client5.http.classic.methods.HttpPost>
      Returns:
      The parameter map to use when building the URL.
    • setParameters

      public void setParameters(Map<String,Object> parameters)
      Sets the URL parameter map.
      Parameters:
      parameters - The values to use when initializing the parameter map