org.apache.camel.component.file
Class FileComponent
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultComponent
org.apache.camel.component.file.GenericFileComponent<File>
org.apache.camel.component.file.FileComponent
- All Implemented Interfaces:
- Component, Service
public class FileComponent
- extends GenericFileComponent<File>
File component.
Methods inherited from class org.apache.camel.impl.DefaultComponent |
convertTo, createEndpoint, createScheduledExecutorService, doStart, doStop, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getExecutorService, getScheduledExecutorService, 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, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 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
Copyright © 2009 Apache Software Foundation. All Rights Reserved.