org.apache.camel.component.file.remote
Class RemoteFileEndpoint<T extends RemoteFileExchange>

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint<E>
      extended by org.apache.camel.impl.ScheduledPollEndpoint<T>
          extended by org.apache.camel.component.file.remote.RemoteFileEndpoint<T>
All Implemented Interfaces:
CamelContextAware, Endpoint<T>
Direct Known Subclasses:
FtpEndpoint, SftpEndpoint

public abstract class RemoteFileEndpoint<T extends RemoteFileExchange>
extends ScheduledPollEndpoint<T>


Constructor Summary
protected RemoteFileEndpoint(String endpointUri)
           
  RemoteFileEndpoint(String uri, RemoteFileComponent component, RemoteFileConfiguration configuration)
           
protected RemoteFileEndpoint(String endpointUri, RemoteFileConfiguration configuration)
           
 
Method Summary
 T createExchange()
           
 T createExchange(ExchangePattern pattern)
           
 T createExchange(String fullFileName, String fileName, long fileLength, ByteArrayOutputStream outputStream)
           
protected  RemoteFileBinding createRemoteFileBinding()
           
 RemoteFileBinding getBinding()
           
 RemoteFileConfiguration getConfiguration()
           
protected  String getFileFriendlyMessageId(String id)
           
 String getGeneratedFileName(Message message)
          Return the file name that will be auto-generated for the given message if none is provided
 boolean isSingleton()
           
 void setBinding(RemoteFileBinding binding)
           
 void setConfiguration(RemoteFileConfiguration configuration)
           
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
convertTo, createEndpointUri, createExchange, createExecutorService, createPollingConsumer, equals, getCamelContext, getComponent, getContext, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Endpoint
createConsumer, createProducer
 

Constructor Detail

RemoteFileEndpoint

public RemoteFileEndpoint(String uri,
                          RemoteFileComponent component,
                          RemoteFileConfiguration configuration)

RemoteFileEndpoint

protected RemoteFileEndpoint(String endpointUri,
                             RemoteFileConfiguration configuration)

RemoteFileEndpoint

protected RemoteFileEndpoint(String endpointUri)
Method Detail

createRemoteFileBinding

protected RemoteFileBinding createRemoteFileBinding()

createExchange

public T createExchange()
Specified by:
createExchange in interface Endpoint<T extends RemoteFileExchange>
Overrides:
createExchange in class DefaultEndpoint<T extends RemoteFileExchange>

createExchange

public T createExchange(ExchangePattern pattern)
Specified by:
createExchange in interface Endpoint<T extends RemoteFileExchange>
Overrides:
createExchange in class DefaultEndpoint<T extends RemoteFileExchange>

createExchange

public T createExchange(String fullFileName,
                        String fileName,
                        long fileLength,
                        ByteArrayOutputStream outputStream)

getBinding

public RemoteFileBinding getBinding()

setBinding

public void setBinding(RemoteFileBinding binding)

isSingleton

public boolean isSingleton()

getConfiguration

public RemoteFileConfiguration getConfiguration()

setConfiguration

public void setConfiguration(RemoteFileConfiguration configuration)

getGeneratedFileName

public String getGeneratedFileName(Message message)
Return the file name that will be auto-generated for the given message if none is provided


getFileFriendlyMessageId

protected String getFileFriendlyMessageId(String id)


Apache CAMEL