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:
Component, Service

public class FileComponent
extends GenericFileComponent<File>

File component.


Field Summary
static String DEFAULT_LOCK_FILE_POSTFIX
          Default camel lock filename postfix
 
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 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
convertTo, createEndpoint, createExecutorService, doStart, doStop, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getExecutorService, ifStartsWithReturnRemainder, isReferenceParameter, lookup, lookup, mandatoryConvertTo, mandatoryLookup, mandatoryLookup, newInstance, setCamelContext, setExecutorService, setProperties, setReferenceProperties, useIntrospectionOnEndpoint, validateParameters, validateURI
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, notStarting, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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


Copyright © 2009 Apache Software Foundation. All Rights Reserved.