Class ActionResponseSingle<ResultT>
java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.ActionResponseSingle<ResultT>
- Type Parameters:
ResultT
- The generic result type.
Generic OData service response wrapper for action requests.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the response headers.io.vavr.control.Option<ResultT>
Get the optional result parsed by the HTTP content.int
Get the response status code.int
hashCode()
static <ResultT> ActionResponseSingle<ResultT>
of
(ODataRequestResultGeneric result, Class<ResultT> actionResultClass) toString()
-
Method Details
-
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
Get the response headers.- Returns:
- The headers of the HTTP status code.
-
equals
-
hashCode
public int hashCode() -
toString
-
of
@Nonnull public static <ResultT> ActionResponseSingle<ResultT> of(@Nonnull ODataRequestResultGeneric result, @Nonnull Class<ResultT> actionResultClass) -
getActionResultClass
-