Interface IBaseClient<nativeRequestType>

Type Parameters:
nativeRequestType - type of a request for the native http client
All Known Implementing Classes:
BaseClient

public interface IBaseClient<nativeRequestType>
A client that communications with an OData service
  • Method Details

    • getServiceRoot

      @Nonnull String getServiceRoot()
      Gets the service root
      Returns:
      the service root
    • setServiceRoot

      void setServiceRoot(@Nonnull String value)
      Sets the service root
      Parameters:
      value - the service root
    • getHttpProvider

      @Nullable IHttpProvider<nativeRequestType> getHttpProvider()
      Gets the HTTP provider
      Returns:
      the HTTP provider
    • getLogger

      @Nullable ILogger getLogger()
      Gets the logger
      Returns:
      the logger
    • getSerializer

      @Nullable ISerializer getSerializer()
      Gets the serializer
      Returns:
      the serializer
    • customRequest

      @Nonnull <T> CustomRequestBuilder<T> customRequest(@Nonnull String url, @Nonnull Class<T> responseType)
      Gets a builder to execute a custom request
      Type Parameters:
      T - the type to deserialize the response to
      Parameters:
      url - the url to send the request to
      responseType - the class to deserialize the response to
      Returns:
      the custom request builder
    • customRequest

      @Nonnull CustomRequestBuilder<com.google.gson.JsonElement> customRequest(@Nonnull String url)
      Gets a builder to execute a custom request with a generic JSONObject response
      Parameters:
      url - the url to send the request to
      Returns:
      the custom request builder
    • batch

      @Nonnull BatchRequestBuilder batch()
      Get the batch request builder.
      Returns:
      a request builder to execute a batch.
    • getServiceSDKVersion

      @Nullable String getServiceSDKVersion()
      Gets the service SDK version if the service SDK is in use, null otherwise
      Returns:
      the service SDK version if the service SDK is in use, null otherwise