org.apache.camel.component.file
Class FileComponent

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultComponent
          extended by org.apache.camel.component.file.GenericFileComponent<File>
              extended by org.apache.camel.component.file.FileComponent
All Implemented Interfaces:
CamelContextAware, Component, Service, ShutdownableService

public class FileComponent
extends GenericFileComponent<File>

File component.


Field Summary
static String DEFAULT_LOCK_FILE_POSTFIX
          Default camel lock filename postfix
static String FILE_EXCHANGE_FILE
          GenericFile property on Camel Exchanges.
 
Fields inherited from class org.apache.camel.component.file.GenericFileComponent
log
 
Constructor Summary
FileComponent()
           
 
Method Summary
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
 
Methods inherited from class org.apache.camel.component.file.GenericFileComponent
createEndpoint
 
Methods inherited from class org.apache.camel.impl.DefaultComponent
afterConfiguration, createEndpoint, doStart, doStop, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, validateParameters, validateURI
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FileComponent

public FileComponent()
Method Detail

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 endpoint
remaining - the remaining part of the URI without the query parameters or component prefix
parameters - 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