public abstract class AbstractConfig extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
filePath |
protected org.mule.api.MuleContext |
muleContext |
Constructor and Description |
---|
AbstractConfig() |
Modifier and Type | Method and Description |
---|---|
protected String |
clean(Serializable obj) |
org.mule.api.MuleEvent |
createMuleEvent(Object payload,
org.mule.api.callback.SourceCallback callback) |
abstract FTPSClientConfig |
getDefaultConnectionSetup(com.mulesoft.api.b2b.Direction direction) |
String |
getFilename() |
String |
getFilePath() |
abstract org.apache.commons.net.ftp.FTPSClient |
getInboundConnection(FTPSClientConfig key) |
org.mule.util.lock.LockFactory |
getLockFactory() |
Integer |
getMaxConcurrentReads() |
String |
getMoveToDir() |
String |
getMoveToFilename() |
org.mule.api.MuleContext |
getMuleContext() |
abstract org.apache.commons.net.ftp.FTPSClient |
getOutboundConnection(FTPSClientConfig key) |
long |
getPollingFrequency() |
long |
getPollingInitialDelay() |
org.apache.commons.pool2.impl.GenericKeyedObjectPool<FTPSClientConfig,org.apache.commons.net.ftp.FTPSClient> |
getPool() |
long |
getSizeCheckWaitTime() |
abstract Boolean |
getStreaming() |
String |
getUploadTmpDir() |
Integer |
getZeroSizeCheckMaxRetries() |
long |
getZeroSizeCheckWaitTime() |
boolean |
getZeroSizedIgnored() |
void |
initializeInboundParameters(String filePath,
String fileName,
String moveToDir,
String moveToFilename,
long pollingFrequency,
long sizeCheckWaitTime,
boolean zeroSizedIgnored,
long zeroSizeCheckWaitTime,
Integer zeroSizeCheckMaxRetries) |
void |
initializeOutboundParameters(String filePath,
String fileName) |
abstract Boolean |
isPartnerManager() |
boolean |
isStreaming() |
void |
overrideOutboundOperationSettings(String oUploadTmpDir,
Boolean oStreaming) |
String |
parseMEL(String melExpression,
org.mule.api.MuleEvent muleEvent) |
String |
parseMEL(String melExpression,
org.mule.api.callback.SourceCallback callback) |
protected void |
preparePool(FTPSClientConfig key) |
abstract Object |
recordTransmissionResults(FTPResult.FTPResultStatus status,
com.mulesoft.api.b2b.Direction direction,
org.apache.commons.net.ftp.FTPSClient client,
String filename,
String errorMessage,
org.mule.api.MuleEvent event) |
void |
returnConnection(FTPSClientConfig key,
org.apache.commons.net.ftp.FTPSClient ftps) |
void |
setFilename(String filename) |
void |
setFilePath(String filePath) |
void |
setLockFactory(org.mule.util.lock.LockFactory lockFactory) |
void |
setMaxConcurrentReads(Integer maxConcurrentReads) |
void |
setMoveToDir(String moveToDir) |
void |
setMoveToFilename(String moveToFilename) |
void |
setMuleContext(org.mule.api.MuleContext muleContext) |
void |
setPollingFrequency(long pollingFrequency) |
void |
setPollingInitialDelay(long pollingInitialDelay) |
void |
setSizeCheckWaitTime(long sizeCheckWaitTime) |
void |
setStreaming(boolean streaming) |
void |
setUploadTmpDir(String uploadTmpDir) |
void |
setZeroSizeCheckMaxRetries(Integer zeroSizeCheckMaxRetries) |
void |
setZeroSizeCheckWaitTime(long zeroSizeCheckWaitTime) |
void |
setZeroSizedIgnored(boolean zeroSizedIgnored) |
void |
validateIncompatibleOutboundConfig(Boolean appendContents) |
@Inject protected org.mule.api.MuleContext muleContext
protected String filePath
public String getFilename()
public String getUploadTmpDir()
public String getFilePath()
public String getMoveToDir()
public String getMoveToFilename()
public Integer getMaxConcurrentReads()
public boolean isStreaming()
public long getSizeCheckWaitTime()
public void setSizeCheckWaitTime(long sizeCheckWaitTime)
public void setMuleContext(org.mule.api.MuleContext muleContext)
public org.mule.api.MuleContext getMuleContext()
public long getPollingFrequency()
public void setPollingFrequency(long pollingFrequency)
public void setFilePath(String filePath)
public void setMoveToDir(String moveToDir)
public void setMoveToFilename(String moveToFilename)
public void setMaxConcurrentReads(Integer maxConcurrentReads)
public void setStreaming(boolean streaming)
public abstract org.apache.commons.net.ftp.FTPSClient getInboundConnection(FTPSClientConfig key) throws Exception
Exception
public abstract org.apache.commons.net.ftp.FTPSClient getOutboundConnection(FTPSClientConfig key) throws Exception
Exception
public void setUploadTmpDir(String uploadTmpDir)
public void setFilename(String filename)
public long getPollingInitialDelay()
public void setPollingInitialDelay(long pollingInitialDelay)
public org.mule.util.lock.LockFactory getLockFactory()
public void setLockFactory(org.mule.util.lock.LockFactory lockFactory)
public boolean getZeroSizedIgnored()
public void setZeroSizedIgnored(boolean zeroSizedIgnored)
public long getZeroSizeCheckWaitTime()
public void setZeroSizeCheckWaitTime(long zeroSizeCheckWaitTime)
public Integer getZeroSizeCheckMaxRetries()
public void setZeroSizeCheckMaxRetries(Integer zeroSizeCheckMaxRetries)
public abstract Object recordTransmissionResults(FTPResult.FTPResultStatus status, com.mulesoft.api.b2b.Direction direction, org.apache.commons.net.ftp.FTPSClient client, String filename, String errorMessage, org.mule.api.MuleEvent event)
public abstract FTPSClientConfig getDefaultConnectionSetup(com.mulesoft.api.b2b.Direction direction) throws Exception
Exception
public org.mule.api.MuleEvent createMuleEvent(Object payload, org.mule.api.callback.SourceCallback callback)
public String parseMEL(String melExpression, org.mule.api.callback.SourceCallback callback)
public abstract Boolean isPartnerManager()
public abstract Boolean getStreaming()
protected String clean(Serializable obj)
public org.apache.commons.pool2.impl.GenericKeyedObjectPool<FTPSClientConfig,org.apache.commons.net.ftp.FTPSClient> getPool()
public void initializeInboundParameters(String filePath, String fileName, String moveToDir, String moveToFilename, long pollingFrequency, long sizeCheckWaitTime, boolean zeroSizedIgnored, long zeroSizeCheckWaitTime, Integer zeroSizeCheckMaxRetries)
public void initializeOutboundParameters(String filePath, String fileName)
public void overrideOutboundOperationSettings(String oUploadTmpDir, Boolean oStreaming)
public void validateIncompatibleOutboundConfig(Boolean appendContents) throws FTPSConnectorException
FTPSConnectorException
public void returnConnection(FTPSClientConfig key, org.apache.commons.net.ftp.FTPSClient ftps) throws Exception
Exception
protected void preparePool(FTPSClientConfig key) throws Exception
Exception
Copyright © 2010–2017. All rights reserved.