Package | Description |
---|---|
org.apache.camel.util.component |
Base classes and utilities for API based components
|
Modifier and Type | Class and Description |
---|---|
class |
ApiMethodHelper<T extends Enum<T> & ApiMethod>
Helper class for working with
ApiMethod . |
Modifier and Type | Class and Description |
---|---|
class |
ApiMethodImpl
Delegate class for
ApiMethod . |
Modifier and Type | Field and Description |
---|---|
protected ApiMethod |
AbstractApiConsumer.method |
Modifier and Type | Field and Description |
---|---|
protected ApiMethodHelper<? extends ApiMethod> |
AbstractApiEndpoint.methodHelper |
Modifier and Type | Method and Description |
---|---|
static <E extends Enum<E> & ApiName,T> |
ApiConsumerHelper.findMethod(AbstractApiEndpoint<E,T> endpoint,
PropertyNamesInterceptor propertyNamesInterceptor)
Utility method to find matching API Method for supplied endpoint's configuration properties.
|
protected ApiMethod |
AbstractApiProducer.findMethod(Exchange exchange,
Map<String,Object> properties) |
static ApiMethod |
ApiMethodHelper.getHighestPriorityMethod(List<? extends ApiMethod> filteredMethods) |
Modifier and Type | Method and Description |
---|---|
List<ApiMethod> |
ApiMethodHelper.filterMethods(List<? extends ApiMethod> methods,
ApiMethodHelper.MatchType matchType)
Filters a list of methods to those that take the given set of arguments.
|
List<ApiMethod> |
ApiMethodHelper.filterMethods(List<? extends ApiMethod> methods,
ApiMethodHelper.MatchType matchType,
Collection<String> argNames)
Filters a list of methods to those that take the given set of arguments.
|
Map<E,ApiMethodHelper<? extends ApiMethod>> |
ApiCollection.getApiHelpers() |
Map<Class<? extends ApiMethod>,E> |
ApiCollection.getApiMethods() |
List<ApiMethod> |
ApiMethodHelper.getCandidateMethods(String name)
Gets methods that match the given name and arguments.
Note that the args list is a required subset of arguments for returned methods.
|
List<ApiMethod> |
ApiMethodHelper.getCandidateMethods(String name,
Collection<String> argNames)
Gets methods that match the given name and arguments.
Note that the args list is a required subset of arguments for returned methods.
|
List<ApiMethod> |
AbstractApiEndpoint.getCandidates()
Returns candidate methods for this endpoint.
|
ApiMethodHelper<? extends ApiMethod> |
ApiCollection.getHelper(E apiName)
Returns a
ApiMethodHelper for a particular API. |
ApiMethodHelper<? extends ApiMethod> |
AbstractApiEndpoint.getMethodHelper()
Returns method helper.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
AbstractApiProducer.doInvokeMethod(ApiMethod method,
Map<String,Object> properties)
Invoke the API method.
|
abstract Object |
AbstractApiEndpoint.getApiProxy(ApiMethod method,
Map<String,Object> args)
Returns an instance of an API Proxy based on apiName, method and args.
|
static Object |
ApiMethodHelper.invokeMethod(Object proxy,
ApiMethod method,
Map<String,Object> properties)
Invokes given method with argument values from given properties.
|
Modifier and Type | Method and Description |
---|---|
List<ApiMethod> |
ApiMethodHelper.filterMethods(List<? extends ApiMethod> methods,
ApiMethodHelper.MatchType matchType)
Filters a list of methods to those that take the given set of arguments.
|
List<ApiMethod> |
ApiMethodHelper.filterMethods(List<? extends ApiMethod> methods,
ApiMethodHelper.MatchType matchType,
Collection<String> argNames)
Filters a list of methods to those that take the given set of arguments.
|
E |
ApiCollection.getApiName(Class<? extends ApiMethod> apiMethod) |
protected void |
AbstractApiComponent.getCompletedMethods(List<String> result,
String completionText,
Class<? extends ApiMethod> apiMethod,
ApiMethodHelper<? extends ApiMethod> helper) |
protected void |
AbstractApiComponent.getCompletedMethods(List<String> result,
String completionText,
Class<? extends ApiMethod> apiMethod,
ApiMethodHelper<? extends ApiMethod> helper) |
static ApiMethod |
ApiMethodHelper.getHighestPriorityMethod(List<? extends ApiMethod> filteredMethods) |
protected void |
ApiCollection.setApiHelpers(Map<E,ApiMethodHelper<? extends ApiMethod>> apiHelpers) |
protected void |
ApiCollection.setApiMethods(Map<Class<? extends ApiMethod>,E> apiMethods) |
Constructor and Description |
---|
AbstractApiEndpoint(String endpointUri,
Component component,
E apiName,
String methodName,
ApiMethodHelper<? extends ApiMethod> methodHelper,
T endpointConfiguration) |
Apache Camel