public class RemoteFileProducer<T>
extends org.apache.camel.component.file.GenericFileProducer<T>
Modifier | Constructor and Description |
---|---|
protected |
RemoteFileProducer(RemoteFileEndpoint<T> endpoint,
RemoteFileOperations<T> operations) |
Modifier and Type | Method and Description |
---|---|
protected void |
connectIfNecessary(org.apache.camel.Exchange exchange) |
void |
disconnect() |
protected void |
doStart() |
protected void |
doStop() |
RemoteFileEndpoint<T> |
getEndpoint() |
String |
getFileSeparator() |
protected RemoteFileOperations<T> |
getOperations() |
void |
handleFailedWrite(org.apache.camel.Exchange exchange,
Exception exception)
The file could not be written.
|
boolean |
isSingleton() |
String |
normalizePath(String name) |
void |
postWriteCheck(org.apache.camel.Exchange exchange) |
void |
preWriteCheck(org.apache.camel.Exchange exchange) |
void |
process(org.apache.camel.Exchange exchange) |
String |
toString() |
createFileName, createTempFileName, processExchange, setOperations, writeFile
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected RemoteFileProducer(RemoteFileEndpoint<T> endpoint, RemoteFileOperations<T> operations)
public String getFileSeparator()
getFileSeparator
in class org.apache.camel.component.file.GenericFileProducer<T>
public String normalizePath(String name)
normalizePath
in class org.apache.camel.component.file.GenericFileProducer<T>
public void process(org.apache.camel.Exchange exchange) throws Exception
protected RemoteFileOperations<T> getOperations()
public RemoteFileEndpoint<T> getEndpoint()
getEndpoint
in interface org.apache.camel.EndpointAware
getEndpoint
in class org.apache.camel.support.DefaultProducer
public void handleFailedWrite(org.apache.camel.Exchange exchange, Exception exception) throws Exception
public void disconnect() throws org.apache.camel.component.file.GenericFileOperationFailedException
org.apache.camel.component.file.GenericFileOperationFailedException
public void preWriteCheck(org.apache.camel.Exchange exchange) throws Exception
public void postWriteCheck(org.apache.camel.Exchange exchange)
postWriteCheck
in class org.apache.camel.component.file.GenericFileProducer<T>
protected void doStart() throws Exception
protected void doStop() throws Exception
protected void connectIfNecessary(org.apache.camel.Exchange exchange) throws org.apache.camel.component.file.GenericFileOperationFailedException
org.apache.camel.component.file.GenericFileOperationFailedException
public boolean isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
isSingleton
in class org.apache.camel.support.DefaultProducer
public String toString()
toString
in class org.apache.camel.support.DefaultProducer
Apache Camel