public abstract class ApiCollection<E extends Enum<E> & ApiName,T> extends Object
Constructor and Description |
---|
ApiCollection() |
Modifier and Type | Method and Description |
---|---|
Map<E,ApiMethodHelper<? extends ApiMethod>> |
getApiHelpers() |
Map<Class<? extends ApiMethod>,E> |
getApiMethods() |
E |
getApiName(Class<? extends ApiMethod> apiMethod) |
Set<String> |
getApiNames()
Returns a list of API name strings.
|
abstract T |
getEndpointConfiguration(E apiName)
Creates an endpoint configuration for a particular API
|
ApiMethodHelper<? extends ApiMethod> |
getHelper(E apiName)
Returns a
ApiMethodHelper for a particular API. |
protected void |
setApiHelpers(Map<E,ApiMethodHelper<? extends ApiMethod>> apiHelpers) |
protected void |
setApiMethods(Map<Class<? extends ApiMethod>,E> apiMethods) |
public ApiCollection()
public final Map<E,ApiMethodHelper<? extends ApiMethod>> getApiHelpers()
public final Map<Class<? extends ApiMethod>,E> getApiMethods()
public final ApiMethodHelper<? extends ApiMethod> getHelper(E apiName)
ApiMethodHelper
for a particular API.apiName
- name of the APIApiMethod
public final Set<String> getApiNames()
public final E getApiName(Class<? extends ApiMethod> apiMethod)
public abstract T getEndpointConfiguration(E apiName)
apiName
- name of the API.protected final void setApiHelpers(Map<E,ApiMethodHelper<? extends ApiMethod>> apiHelpers)
protected final void setApiMethods(Map<Class<? extends ApiMethod>,E> apiMethods)
Apache Camel