public class SftpUtil extends Object
Constructor and Description |
---|
SftpUtil(ImmutableEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
void |
cleanupTempDir(SftpClient sftpClient,
String transferFileName,
String tempDir) |
void |
copyStreamToFile(InputStream input,
File destination)
Should be moved to a util class that is not based on an endpoint...
|
String |
createUniqueSuffix(String filename) |
void |
cwdToTempDirOnOutbound(SftpClient sftpClient,
String endpointDir)
Changes the directory to the temp-dir on the outbound endpoint.
|
String |
getArchiveDir() |
String |
getArchiveTempReceivingDir() |
String |
getArchiveTempSendingDir() |
String |
getDuplicateHandling() |
String |
getIdentityFile() |
String |
getKnownHostsFile() |
String |
getPassphrase() |
long |
getSizeCheckWaitTime() |
String |
getTempDirInbound() |
String |
getTempDirOutbound() |
boolean |
isKeepFileOnError() |
boolean |
isUseTempDirInbound() |
boolean |
isUseTempDirOutbound() |
boolean |
isUseTempFileTimestampSuffix() |
void |
setErrorOccurredOnInputStream(InputStream inputStream) |
public SftpUtil(ImmutableEndpoint endpoint)
public String getTempDirInbound()
public boolean isUseTempDirInbound()
public String getTempDirOutbound()
public boolean isUseTempDirOutbound()
public void cleanupTempDir(SftpClient sftpClient, String transferFileName, String tempDir)
public long getSizeCheckWaitTime()
public String getArchiveDir()
public String getArchiveTempReceivingDir()
public String getArchiveTempSendingDir()
public boolean isUseTempFileTimestampSuffix()
public String getDuplicateHandling()
public String getIdentityFile()
public String getPassphrase()
public String getKnownHostsFile()
public void cwdToTempDirOnOutbound(SftpClient sftpClient, String endpointDir) throws IOException
sftpClient
- endpointDir
- IOException
public boolean isKeepFileOnError()
public void copyStreamToFile(InputStream input, File destination) throws IOException
input
- destination
- IOException
public void setErrorOccurredOnInputStream(InputStream inputStream)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.