public class FileComponent extends GenericFileComponent<File> implements EndpointCompleter
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LOCK_FILE_POSTFIX
Default camel lock filename postfix
|
static String |
FILE_EXCHANGE_FILE
GenericFile property on Camel Exchanges.
|
logshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
FileComponent() |
FileComponent(CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterPropertiesSet(GenericFileEndpoint<File> endpoint)
A factory method for derived file components to perform validation of properties
|
protected GenericFileEndpoint<File> |
buildFileEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
A factory method for derived file components to create the endpoint
|
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 boolean |
isValidEndpointCompletion(ComponentConfiguration configuration,
String completionText,
File file)
Returns true if this is a valid file for completion.
|
createEndpointcreateComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClassafterConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isResolvePropertyPlaceholders, preProcessUri, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, setResolvePropertyPlaceholders, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic static final String FILE_EXCHANGE_FILE
public static final String DEFAULT_LOCK_FILE_POSTFIX
public FileComponent()
public FileComponent(CamelContext context)
protected GenericFileEndpoint<File> buildFileEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
GenericFileComponentbuildFileEndpoint in class GenericFileComponent<File>uri - the full URI of the endpointremaining - the remaining part of the URI without the query
parameters or component prefixparameters - the optional parameters passed inException - can be thrownprotected void afterPropertiesSet(GenericFileEndpoint<File> endpoint) throws Exception
GenericFileComponentafterPropertiesSet in class GenericFileComponent<File>endpoint - the endpointException - can be thrown in case of validation errorspublic List<String> completeEndpointPath(ComponentConfiguration configuration, String completionText)
EndpointCompletercompleteEndpointPath in interface EndpointCompleterprotected boolean isValidEndpointCompletion(ComponentConfiguration configuration, String completionText, File file)
Apache Camel