Interface RequestBuilderExecutable<ResultT>
- Type Parameters:
ResultT
- The type of the result entity, if any.
- All Known Subinterfaces:
ModificationRequestBuilder<ResultT>
,ReadRequestBuilder<ResultT>
,RequestBuilder<ResultT>
- All Known Implementing Classes:
ActionRequestBuilder
,BatchRequestBuilder
,CollectionValueActionRequestBuilder
,CollectionValueFunctionRequestBuilder
,CountRequestBuilder
,CreateRequestBuilder
,DeleteRequestBuilder
,FunctionRequestBuilder
,GetAllRequestBuilder
,GetByKeyRequestBuilder
,SingleValueActionRequestBuilder
,SingleValueFunctionRequestBuilder
,UpdateRequestBuilder
public interface RequestBuilderExecutable<ResultT>
Representation of a generic executable OData request builder as a fluent interface.
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(Destination destination) Execute the OData request.default io.vavr.control.Try<ResultT>
tryExecute
(Destination destination) Safely execute the OData request.
-
Method Details
-
execute
Execute the OData request.- Parameters:
destination
- The destination to be used as request target.- Returns:
- The generic OData response result.
- Throws:
DestinationAccessException
- If there is an issue accessing theDestination
.HttpClientInstantiationException
- If there is an issue creating theHttpClient
.ODataException
- If the OData request execution failed. Please find the documentation forODataException
possible sub-types and error scenarios they can occur in.
-
tryExecute
Safely execute the OData request.- Parameters:
destination
- The destination to be used as request target.- Returns:
- The generic OData response result wrapped in a
Try
block.
-