|
||||||||||
| 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. |
String |
getFileSeparator()
|
protected RemoteFileOperations |
getOperations()
|
void |
handleFailedWrite(Exchange exchange,
Exception exception)
The file could not be written. |
boolean |
isSingleton()
Whether this class supports being singleton or not. |
String |
normalizePath(String name)
|
void |
postWriteCheck()
Perform any actions that need to occur after we are done such as disconnecting. |
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()
|
String |
toString()
|
| 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 |
| 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, 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 |
|---|
public String getFileSeparator()
getFileSeparator in class GenericFileProducer<T>public 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
public void handleFailedWrite(Exchange exchange,
Exception exception)
throws Exception
handleFailedWrite in class GenericFileProducer<T>Exception
public void disconnect()
throws GenericFileOperationFailedException
GenericFileOperationFailedException
public void preWriteCheck()
throws Exception
GenericFileProducer
preWriteCheck in class GenericFileProducer<T>Exceptionpublic void postWriteCheck()
GenericFileProducer
postWriteCheck in class GenericFileProducer<T>
protected void doStart()
throws Exception
doStart in class GenericFileProducer<T>Exception
protected void doStop()
throws Exception
doStop in class GenericFileProducer<T>Exception
protected void recoverableConnectIfNecessary()
throws Exception
Exception
protected void connectIfNecessary()
throws GenericFileOperationFailedException
GenericFileOperationFailedExceptionpublic boolean isSingleton()
IsSingleton
isSingleton in interface IsSingletonisSingleton in class DefaultProducerpublic String toString()
toString in class DefaultProducer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||