org.apache.camel.component.file
Class FileComponent
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultComponent
org.apache.camel.component.file.GenericFileComponent<File>
org.apache.camel.component.file.FileComponent
- All Implemented Interfaces:
- CamelContextAware, Component, Service, ShutdownableService, StatefulService, SuspendableService
public class FileComponent
- extends GenericFileComponent<File>
File component.
Methods inherited from class org.apache.camel.impl.DefaultComponent |
afterConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, validateParameters, validateURI |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_EXCHANGE_FILE
public static final String FILE_EXCHANGE_FILE
- GenericFile property on Camel Exchanges.
- See Also:
- Constant Field Values
DEFAULT_LOCK_FILE_POSTFIX
public static final String DEFAULT_LOCK_FILE_POSTFIX
- Default camel lock filename postfix
- See Also:
- Constant Field Values
FileComponent
public FileComponent()
buildFileEndpoint
protected GenericFileEndpoint<File> buildFileEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
throws Exception
- Description copied from class:
GenericFileComponent
- A factory method for derived file components to create the endpoint
- Specified by:
buildFileEndpoint
in class GenericFileComponent<File>
- Parameters:
uri
- the full URI of the endpointremaining
- the remaining part of the URI without the query
parameters or component prefixparameters
- the optional parameters passed in
- Returns:
- a newly created endpoint or null if the endpoint cannot be
created based on the inputs
- Throws:
Exception
- can be thrown
afterPropertiesSet
protected void afterPropertiesSet(GenericFileEndpoint<File> endpoint)
throws Exception
- Description copied from class:
GenericFileComponent
- A factory method for derived file components to perform validation of properties
- Specified by:
afterPropertiesSet
in class GenericFileComponent<File>
- Parameters:
endpoint
- the endpoint
- Throws:
Exception
- can be thrown in case of validation errors
Apache CAMEL