Class ActionResponseCollection<ResultT>

java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.ActionResponseCollection<ResultT>
Type Parameters:
ResultT - The generic result type.

public final class ActionResponseCollection<ResultT> extends Object
Generic OData service response wrapper for action requests.
  • Method Details

    • getResponseResult

      @Nonnull public io.vavr.control.Option<List<ResultT>> getResponseResult()
      Get the optional result parsed by the HTTP content.
      Returns:
      The optional result entity.
    • getResponseStatusCode

      public int getResponseStatusCode()
      Get the response status code.
      Returns:
      The integer representation of the HTTP status code.
    • getResponseHeaders

      @Nonnull public Map<String,Iterable<String>> getResponseHeaders()
      Get the response headers.
      Returns:
      The headers of the HTTP status code.
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • of

      @Nonnull public static <ResultT> ActionResponseCollection<ResultT> of(@Nonnull ODataRequestResultGeneric result, @Nonnull Class<ResultT> actionResultClass)
    • getActionResultClass

      @Nonnull public Class<ResultT> getActionResultClass()