Class ODataRequestAction

java.lang.Object
com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestGeneric
com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestAction
All Implemented Interfaces:
ODataRequestExecutable

public class ODataRequestAction extends ODataRequestGeneric
The executable OData action request.
  • Constructor Details

    • ODataRequestAction

      public ODataRequestAction(@Nonnull String servicePath, @Nonnull String actionName, @Nullable String actionParameters, @Nonnull ODataProtocol protocol)
      Convenience constructor for invocations of unbound actions. For bound actions use ODataRequestAction(String, ODataResourcePath, String, ODataProtocol).
      Parameters:
      servicePath - The OData service path.
      actionName - The action name.
      actionParameters - Optional: The action parameters HTTP payload.
      protocol - The OData protocol to use.
    • ODataRequestAction

      public ODataRequestAction(@Nonnull String servicePath, @Nonnull ODataResourcePath actionPath, @Nullable String actionParameters, @Nonnull ODataProtocol protocol)
      Default constructor for OData Action request.
      Parameters:
      servicePath - The OData service path.
      actionPath - The path identifying the action. In case of an unbound action this is simply the action name. If this is a bound action the path must also contain the full path to the action.
      actionParameters - Optional: The action parameters as HTTP payload. This is expected to be a JSON formatted String.
      protocol - The OData protocol to use.
    • ODataRequestAction

      public ODataRequestAction(@Nonnull String servicePath, @Nonnull ODataResourcePath actionPath, @Nullable String actionParameters, @Nullable String encodedQuery, @Nonnull ODataProtocol protocol)
      Constructor with StructuredQuery for OData Function request.
      Parameters:
      servicePath - The OData service path.
      actionPath - The full ODataResourcePath containing the action name, its parameters and possible further path segments. If this is a bound action the path must also contain the full path to the action.
      actionParameters - Optional: The action parameters as HTTP payload. This is expected to be a JSON formatted String.
      encodedQuery - Optional: An encodedQuery HTTP request query.
      protocol - The OData protocol to use.
  • Method Details