public abstract class AbstractApiComponent<E extends Enum<E> & ApiName,T,S extends ApiCollection<E,T>> extends UriEndpointComponent implements EndpointCompleter
Component classes.| Modifier and Type | Field and Description |
|---|---|
protected Class<E> |
apiNameClass |
protected S |
collection |
protected T |
configuration |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
AbstractApiComponent(CamelContext context,
Class<? extends Endpoint> endpointClass,
Class<E> apiNameClass,
S collection) |
AbstractApiComponent(Class<? extends Endpoint> endpointClass,
Class<E> apiNameClass,
S collection) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
completeEndpointPath(ComponentConfiguration configuration,
String completionText)
Given the configuration and completion text, return a list of possible completion values
for a command line, IDE or web based tool.
|
protected abstract Endpoint |
createEndpoint(String uri,
String methodName,
E apiName,
T endpointConfiguration) |
protected Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
A factory method allowing derived components to create a new endpoint
from the given URI, remaining path and optional parameters
|
protected T |
createEndpointConfiguration(E name) |
protected abstract E |
getApiName(String apiNameStr) |
protected E |
getApiNameOrNull(String nameStr) |
protected void |
getCompletedMethods(List<String> result,
String completionText,
Class<? extends ApiMethod> apiMethod,
ApiMethodHelper<? extends ApiMethod> helper) |
T |
getConfiguration() |
void |
setConfiguration(T configuration) |
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClassafterConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendprotected T configuration
protected final S extends ApiCollection<E,T> collection
public AbstractApiComponent(Class<? extends Endpoint> endpointClass, Class<E> apiNameClass, S collection)
public AbstractApiComponent(CamelContext context, Class<? extends Endpoint> endpointClass, Class<E> apiNameClass, S collection)
protected Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
DefaultComponentcreateEndpoint in class DefaultComponenturi - the full URI of the endpointremaining - the remaining part of the URI without the query
parameters or component prefixparameters - the optional parameters passed inException - is thrown if error creating the endpointprotected abstract E getApiName(String apiNameStr) throws IllegalArgumentException
IllegalArgumentExceptionprotected abstract Endpoint createEndpoint(String uri, String methodName, E apiName, T endpointConfiguration)
protected T createEndpointConfiguration(E name) throws Exception
Exceptionpublic T getConfiguration()
public void setConfiguration(T configuration)
public List<String> completeEndpointPath(ComponentConfiguration configuration, String completionText)
EndpointCompletercompleteEndpointPath in interface EndpointCompleterprotected E getApiNameOrNull(String nameStr)
protected void getCompletedMethods(List<String> result, String completionText, Class<? extends ApiMethod> apiMethod, ApiMethodHelper<? extends ApiMethod> helper)
Apache Camel