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 Type
    Method
    Description
    execute(Destination destination)
    Execute the OData request.
    default io.vavr.control.Try<ResultT>
    tryExecute(Destination destination)
    Safely execute the OData request.
  • Method Details

    • execute

      @Nonnull ResultT execute(@Nonnull Destination destination)
      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 the Destination.
      HttpClientInstantiationException - If there is an issue creating the HttpClient.
      ODataException - If the OData request execution failed. Please find the documentation for ODataException possible sub-types and error scenarios they can occur in.
    • tryExecute

      @Nonnull default io.vavr.control.Try<ResultT> tryExecute(@Nonnull Destination destination)
      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.