|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.util.component.ApiConsumerHelper
public final class ApiConsumerHelper
Utility class for API Consumers.
| Method Summary | ||
|---|---|---|
static
|
findMethod(AbstractApiEndpoint<E,T> endpoint,
PropertyNamesInterceptor propertyNamesInterceptor)
Utility method to find matching API Method for supplied endpoint's configuration properties. |
|
static
|
getResultsProcessed(T consumer,
Object result,
boolean splitResult)
Utility method for Consumers to process API method invocation result. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <E extends Enum<E> & ApiName,T> ApiMethod findMethod(AbstractApiEndpoint<E,T> endpoint,
PropertyNamesInterceptor propertyNamesInterceptor)
E - ApiName enumeration.T - Component configuration class.endpoint - endpoint for configuration properties.propertyNamesInterceptor - names interceptor for adapting property names, usually the consumer class itself.
public static <T extends DefaultConsumer & ResultInterceptor> int getResultsProcessed(T consumer,
Object result,
boolean splitResult)
throws Exception
T - Consumer class that extends DefaultConsumer and implements ResultInterceptor.consumer - Consumer that wants to process results.result - result of API method invocation.splitResult - true if the Consumer wants to split result using ResultInterceptor.splitResult(Object) method.
Exception - on error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||