Class DefaultApiBundle

java.lang.Object
de.xima.fc.api.rest.pub.client.user.DefaultApiBundle
All Implemented Interfaces:
ApiBundle

@Generated("de.xima.openapi.codegen.java_jaxrs.XimaJavaJaxrsGenerator") public final class DefaultApiBundle extends Object implements ApiBundle
The default implementation of an ApiBundle that provides access to the individual APIs.
  • Constructor Details

    • DefaultApiBundle

      public DefaultApiBundle(ApiClient client)
      A new API bundle that uses the given client for sending requests.
      Parameters:
      client - API client to use for sending requests.
  • Method Details

    • client

      public ApiClient client()
      Specified by:
      client in interface ApiBundle
      Returns:
      The underlying API client for sending requests and receiving responses.
    • api

      public <T extends EndpointCategory> T api(Class<T> apiType)
      Description copied from interface: ApiBundle
      Generic method for accessing an API of a particular type. The API instance is created lazily as required. You can create a custom API implementation and pass it to this method, just make sure the implementation has a public single-arg constructor that accepts an ApiClient.
      Specified by:
      api in interface ApiBundle
      Parameters:
      apiType - The type of the API to access.
      Returns:
      The API instance of the given type for invoking API calls.