Class ApiCollection<E extends Enum<E> & ApiName,T>

java.lang.Object
org.apache.camel.support.component.ApiCollection<E,T>

public abstract class ApiCollection<E extends Enum<E> & ApiName,T> extends Object
Base class for a collection of ApiMethods. Meant to be extended by Components to create the api name map.
  • Constructor Details

    • ApiCollection

      public ApiCollection()
  • Method Details

    • getApiHelpers

      public final Map<E,ApiMethodHelper<? extends ApiMethod>> getApiHelpers()
    • getApiMethods

      public final Map<Class<? extends ApiMethod>,E> getApiMethods()
    • getHelper

      public final ApiMethodHelper<? extends ApiMethod> getHelper(E apiName)
      Returns a ApiMethodHelper for a particular API.
      Parameters:
      apiName - name of the API
      Returns:
      helper class to work with ApiMethod
    • getApiNames

      public final Set<String> getApiNames()
      Returns a list of API name strings.
      Returns:
      list of API names.
    • getApiName

      public final E getApiName(Class<? extends ApiMethod> apiMethod)
    • getEndpointConfiguration

      public abstract T getEndpointConfiguration(E apiName)
      Creates an endpoint configuration for a particular API
      Parameters:
      apiName - name of the API.
      Returns:
      Endpoint configuration object for the API.
    • setApiHelpers

      protected final void setApiHelpers(Map<E,ApiMethodHelper<? extends ApiMethod>> apiHelpers)
    • setApiMethods

      protected final void setApiMethods(Map<Class<? extends ApiMethod>,E> apiMethods)