|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer
org.apache.camel.component.file.GenericFileProducer<T>
org.apache.camel.component.file.remote.RemoteFileProducer<T>
public class RemoteFileProducer<T>
Generic remote file producer for all the FTP variations.
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.component.file.GenericFileProducer |
|---|
endpoint, log, operations |
| Constructor Summary | |
|---|---|
protected |
RemoteFileProducer(RemoteFileEndpoint<T> endpoint,
RemoteFileOperations<T> operations)
|
| Method Summary | |
|---|---|
protected void |
connectIfNecessary()
|
void |
disconnect()
|
protected void |
doStart()
|
protected void |
doStop()
|
RemoteFileEndpoint<T> |
getEndpoint()
Gets the endpoint this producer sends to. |
protected String |
getFileSeparator()
|
protected RemoteFileOperations |
getOperations()
|
protected void |
handleFailedWrite(Exchange exchange,
Exception exception)
The file could not be written. |
boolean |
isSingleton()
Whether this class supports being singleton or not. |
protected String |
normalizePath(String name)
|
protected void |
postWriteCheck()
Perform any actions that need to occur after we are done such as disconnecting. |
protected void |
preWriteCheck()
Perform any actions that need to occur before we write such as connecting to an FTP server etc. |
void |
process(Exchange exchange)
Processes the message exchange |
protected void |
recoverableConnectIfNecessary()
|
| Methods inherited from class org.apache.camel.component.file.GenericFileProducer |
|---|
createFileName, createTempFileName, processExchange, setOperations, writeFile |
| Methods inherited from class org.apache.camel.impl.DefaultProducer |
|---|
createExchange, createExchange, createExchange, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.camel.Service |
|---|
start, stop |
| Constructor Detail |
|---|
protected RemoteFileProducer(RemoteFileEndpoint<T> endpoint,
RemoteFileOperations<T> operations)
| Method Detail |
|---|
protected String getFileSeparator()
getFileSeparator in class GenericFileProducer<T>protected String normalizePath(String name)
normalizePath in class GenericFileProducer<T>
public void process(Exchange exchange)
throws Exception
Processor
process in interface Processorprocess in class GenericFileProducer<T>exchange - the message exchange
Exception - if an internal processing error has occurred.protected RemoteFileOperations getOperations()
public RemoteFileEndpoint<T> getEndpoint()
Producer
getEndpoint in interface ProducergetEndpoint in class DefaultProducer
protected void handleFailedWrite(Exchange exchange,
Exception exception)
throws Exception
handleFailedWrite in class GenericFileProducer<T>Exception
public void disconnect()
throws GenericFileOperationFailedException
GenericFileOperationFailedException
protected void preWriteCheck()
throws Exception
GenericFileProducer
preWriteCheck in class GenericFileProducer<T>Exceptionprotected void postWriteCheck()
GenericFileProducer
postWriteCheck in class GenericFileProducer<T>
protected void doStart()
throws Exception
doStart in class DefaultProducerException
protected void doStop()
throws Exception
doStop in class DefaultProducerException
protected void recoverableConnectIfNecessary()
throws Exception
Exception
protected void connectIfNecessary()
throws GenericFileOperationFailedException
GenericFileOperationFailedExceptionpublic boolean isSingleton()
IsSingleton
isSingleton in interface IsSingletonisSingleton in class DefaultProducer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||