@Deprecated @ConfigurationWarning(value="Please replace with FtpFileSystemSender") public class FtpSender extends SenderWithParametersBase implements HasKeystore, HasTruststore
parameterNamesMustBeUnique, paramList
log
Constructor and Description |
---|
FtpSender()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
configure()
Deprecated.
configure() is called once at startup of the framework in the configure method of the owner of this sender. |
FtpSession.FtpType |
getFtpType()
Deprecated.
|
String |
getKeyManagerAlgorithm()
Deprecated.
|
String |
getKeystore()
Deprecated.
|
String |
getKeystoreAlias()
Deprecated.
|
String |
getKeystoreAliasAuthAlias()
Deprecated.
|
String |
getKeystoreAliasPassword()
Deprecated.
|
String |
getKeystoreAuthAlias()
Deprecated.
|
String |
getKeystorePassword()
Deprecated.
|
KeystoreType |
getKeystoreType()
Deprecated.
|
FtpSession.Prot |
getProt()
Deprecated.
|
String |
getRemoteDirectory()
Deprecated.
|
String |
getRemoteFilenamePattern()
Deprecated.
|
String |
getTrustManagerAlgorithm()
Deprecated.
|
String |
getTruststore()
Deprecated.
|
String |
getTruststoreAuthAlias()
Deprecated.
|
String |
getTruststorePassword()
Deprecated.
|
KeystoreType |
getTruststoreType()
Deprecated.
|
boolean |
isAllowSelfSignedCertificates()
Deprecated.
|
boolean |
isIgnoreCertificateExpiredException()
Deprecated.
|
boolean |
isSynchronous()
Deprecated.
When
true , the result of sendMessage is the reply of the request. |
boolean |
isVerifyHostname()
Deprecated.
|
SenderResult |
sendMessage(Message message,
PipeLineSession session)
Deprecated.
Send a message to some destination (as configured in the Sender object).
|
void |
setAllowSelfSignedCertificates(boolean testModeNoCertificatorCheck)
Deprecated.
(ftps) if true, the server certificate can be self signed
|
void |
setAuthAlias(String alias)
Deprecated.
name of the alias to obtain credentials to authenticatie on remote server
|
void |
setConsoleKnownHostsVerifier(boolean verifier)
Deprecated.
(sftp)
|
void |
setFileType(FtpSession.FileType fileType)
Deprecated.
|
void |
setFtpType(FtpSession.FtpType string)
Deprecated.
|
void |
setFtpTypeDescription(FtpSession.FtpType value)
Deprecated.
|
void |
setHost(String host)
Deprecated.
name or ip adres of remote host
|
void |
setIgnoreCertificateExpiredException(boolean ignoreCertificateExpiredException)
Deprecated.
If
true , CertificateExpiredExceptions are ignored |
void |
setKeyboardInteractive(boolean keyboardInteractive)
Deprecated.
when true, keyboardinteractive is used to login
|
void |
setKeyManagerAlgorithm(String keyManagerAlgorithm)
Deprecated.
selects the algorithm to generate keymanagers.
|
void |
setKeystore(String certificate)
Deprecated.
Resource url to keystore or certificate.
|
void |
setKeystoreAlias(String alias)
Deprecated.
Alias to obtain specific certificate or key in keystore
|
void |
setKeystoreAliasAuthAlias(String keystoreAliasAuthAlias)
Deprecated.
Authentication alias to authenticate access to certificate or key indicated by
keystoreAlias |
void |
setKeystoreAliasPassword(String keystoreAliasPassword)
Deprecated.
Default password to authenticate access to certificate or key indicated by
keystoreAlias |
void |
setKeystoreAuthAlias(String keystoreAuthAlias)
Deprecated.
Authentication alias used to obtain keystore password
|
void |
setKeystorePassword(String keystorePassword)
Deprecated.
Default password to access keystore
|
void |
setKeystoreType(KeystoreType keystoreType)
Deprecated.
Type of keystore
|
void |
setKnownHostsPath(String knownHostsPath)
Deprecated.
(sftp) path to file with knownhosts
|
void |
setMessageIsContent(boolean messageIsContent)
Deprecated.
if true, the contents of the message is send, otherwise it message contains the local filenames of the files to be send
|
void |
setPassive(boolean b)
Deprecated.
if true, passive ftp is used: before data is sent, a pasv command is issued, and the connection is set up by the server
|
void |
setPassword(String passwd)
Deprecated.
name of the password to authenticatie on remote server
|
void |
setPort(int port)
Deprecated.
portnumber of remote host
|
void |
setPrefCSEncryption(String prefCSEncryption)
Deprecated.
(sftp) optional preferred encryption from client to server for sftp protocol
|
void |
setPrefSCEncryption(String prefSCEncryption)
Deprecated.
(sftp) optional preferred encryption from server to client for sftp protocol
|
void |
setPrivateKeyAuthAlias(String privateKeyAuthAlias)
Deprecated.
(sftp) name of the alias to obtain credentials for passphrase of private key file
|
void |
setPrivateKeyFilePath(String privateKeyFilePath)
Deprecated.
(sftp) path to private key file for sftp authentication
|
void |
setPrivateKeyPassword(String passPhrase)
Deprecated.
(sftp) passphrase of private key file
|
void |
setProt(FtpSession.Prot prot)
Deprecated.
Sets the
Data Channel Protection Level . |
void |
setProtP(boolean b)
Deprecated.
|
void |
setProxyAuthAlias(String proxyAuthAlias)
Deprecated.
name of the alias to obtain credentials to authenticate on proxy
|
void |
setProxyHost(String proxyHost)
Deprecated.
proxy host name
|
void |
setProxyPassword(String proxyPassword)
Deprecated.
default password in case proxy requires authentication
|
void |
setProxyPort(int proxyPort)
Deprecated.
proxy port
|
void |
setProxyTransportType(int proxyTransportType)
Deprecated.
(sftp) transport type in case of sftp (1=standard, 2=http, 3=socks4, 4=socks5)
|
void |
setProxyUsername(String proxyUsername)
Deprecated.
default user name in case proxy requires authentication
|
void |
setRemoteDirectory(String remoteDirectory)
Deprecated.
remote directory in which files have to be uploaded
|
void |
setRemoteFilenamePattern(String string)
Deprecated.
filename pattern for uploaded files
|
void |
setTrustManagerAlgorithm(String trustManagerAlgorithm)
Deprecated.
selects the algorithm to generate trustmanagers.
|
void |
setTruststore(String truststore)
Deprecated.
(ftps) resource url to truststore to be used for authentication
|
void |
setTruststoreAuthAlias(String truststoreAuthAlias)
Deprecated.
(ftps) alias used to obtain truststore password
|
void |
setTruststorePassword(String truststorePassword)
Deprecated.
(ftps)
|
void |
setTruststoreType(KeystoreType truststoreType)
Deprecated.
(ftps)
|
void |
setUsername(String username)
Deprecated.
name of the user to authenticatie on remote server
|
void |
setVerifyHostname(boolean verifyHostname)
Deprecated.
(ftps) when true, the hostname in the certificate will be checked against the actual hostname
|
addParameter, checkStringAttributeOrParameter, consumesSessionVariable, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueList
close, createBean, getLogPrefix, getName, open, setApplicationContext, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
close, open, sendMessageOrThrow
getName, setName
public void configure() throws ConfigurationException
ISender
configure()
is called once at startup of the framework in the configure method of the owner of this sender.
Purpose of this method is to check whether the static configuration of the sender is correct.
As much as possible class-instantiating should take place in the configure()
or open()
method, to improve performance.configure
in interface IConfigurable
configure
in interface ISender
configure
in class SenderWithParametersBase
ConfigurationException
public boolean isSynchronous()
ISender
true
, the result of sendMessage is the reply of the request.isSynchronous
in interface ISender
isSynchronous
in class SenderBase
public SenderResult sendMessage(Message message, PipeLineSession session) throws SenderException, TimeoutException
ISender
configure()
method is called.
The following table shows the difference between synchronous and a-synchronous senders:
synchronous | a-synchronous | |
---|---|---|
ISender.isSynchronous() returns | true | false |
return value of sendMessage() is | the reply-message | the messageId of the message sent |
the correlationID specified with sendMessage() | may be ignored | is sent with the message |
a {link TimeOutException} | may be thrown if a timeout occurs waiting for a reply | should not be expected |
Multiple objects may try to call this method at the same time, from different threads.
Implementations of this method should therefore be thread-safe, or synchronized
.
sendMessage
in interface ISender
SenderException
TimeoutException
public void setRemoteDirectory(String remoteDirectory)
public String getRemoteDirectory()
public void setRemoteFilenamePattern(String string)
public String getRemoteFilenamePattern()
public void setHost(String host)
public void setPort(int port)
public void setAuthAlias(String alias)
public void setUsername(String username)
public void setPassword(String passwd)
public void setProxyHost(String proxyHost)
public void setProxyPort(int proxyPort)
public void setProxyAuthAlias(String proxyAuthAlias)
public void setProxyUsername(String proxyUsername)
public void setProxyPassword(String proxyPassword)
@Deprecated @ConfigurationWarning(value="use attribute ftpType instead") public void setFtpTypeDescription(FtpSession.FtpType value)
public void setFtpType(FtpSession.FtpType string)
public FtpSession.FtpType getFtpType()
public void setFileType(FtpSession.FileType fileType)
public void setMessageIsContent(boolean messageIsContent)
public void setPassive(boolean b)
public void setProxyTransportType(int proxyTransportType)
public void setPrefCSEncryption(String prefCSEncryption)
public void setPrefSCEncryption(String prefSCEncryption)
public void setPrivateKeyFilePath(String privateKeyFilePath)
public void setPrivateKeyAuthAlias(String privateKeyAuthAlias)
public void setPrivateKeyPassword(String passPhrase)
public void setKnownHostsPath(String knownHostsPath)
public void setConsoleKnownHostsVerifier(boolean verifier)
public void setKeystore(String certificate)
HasKeystore
setKeystore
in interface HasKeystore
public String getKeystore()
getKeystore
in interface HasKeystore
public void setKeystoreType(KeystoreType keystoreType)
HasKeystore
setKeystoreType
in interface HasKeystore
public KeystoreType getKeystoreType()
getKeystoreType
in interface HasKeystore
public void setKeyManagerAlgorithm(String keyManagerAlgorithm)
setKeyManagerAlgorithm
in interface HasKeystore
public String getKeyManagerAlgorithm()
getKeyManagerAlgorithm
in interface HasKeystore
public void setKeystoreAuthAlias(String keystoreAuthAlias)
HasKeystore
setKeystoreAuthAlias
in interface HasKeystore
public String getKeystoreAuthAlias()
getKeystoreAuthAlias
in interface HasKeystore
public void setKeystorePassword(String keystorePassword)
HasKeystore
setKeystorePassword
in interface HasKeystore
public String getKeystorePassword()
getKeystorePassword
in interface HasKeystore
public void setKeystoreAlias(String alias)
HasKeystore
setKeystoreAlias
in interface HasKeystore
public String getKeystoreAlias()
getKeystoreAlias
in interface HasKeystore
public void setKeystoreAliasAuthAlias(String keystoreAliasAuthAlias)
HasKeystore
keystoreAlias
setKeystoreAliasAuthAlias
in interface HasKeystore
public String getKeystoreAliasAuthAlias()
getKeystoreAliasAuthAlias
in interface HasKeystore
public void setKeystoreAliasPassword(String keystoreAliasPassword)
HasKeystore
keystoreAlias
setKeystoreAliasPassword
in interface HasKeystore
public String getKeystoreAliasPassword()
getKeystoreAliasPassword
in interface HasKeystore
public void setTruststore(String truststore)
setTruststore
in interface HasTruststore
public String getTruststore()
getTruststore
in interface HasTruststore
public void setTruststoreType(KeystoreType truststoreType)
setTruststoreType
in interface HasTruststore
public KeystoreType getTruststoreType()
getTruststoreType
in interface HasTruststore
public void setTrustManagerAlgorithm(String trustManagerAlgorithm)
setTrustManagerAlgorithm
in interface HasTruststore
public String getTrustManagerAlgorithm()
getTrustManagerAlgorithm
in interface HasTruststore
public void setTruststoreAuthAlias(String truststoreAuthAlias)
setTruststoreAuthAlias
in interface HasTruststore
public String getTruststoreAuthAlias()
getTruststoreAuthAlias
in interface HasTruststore
public void setTruststorePassword(String truststorePassword)
setTruststorePassword
in interface HasTruststore
public String getTruststorePassword()
getTruststorePassword
in interface HasTruststore
public void setVerifyHostname(boolean verifyHostname)
setVerifyHostname
in interface HasTruststore
public boolean isVerifyHostname()
isVerifyHostname
in interface HasTruststore
public void setAllowSelfSignedCertificates(boolean testModeNoCertificatorCheck)
setAllowSelfSignedCertificates
in interface HasTruststore
public boolean isAllowSelfSignedCertificates()
isAllowSelfSignedCertificates
in interface HasTruststore
public void setIgnoreCertificateExpiredException(boolean ignoreCertificateExpiredException)
HasTruststore
true
, CertificateExpiredExceptions are ignoredsetIgnoreCertificateExpiredException
in interface HasTruststore
public boolean isIgnoreCertificateExpiredException()
isIgnoreCertificateExpiredException
in interface HasTruststore
@Deprecated @ConfigurationWarning(value="use attribute prot=\"P\" instead") public void setProtP(boolean b)
public void setProt(FtpSession.Prot prot)
Data Channel Protection Level
.public FtpSession.Prot getProt()
public void setKeyboardInteractive(boolean keyboardInteractive)
Copyright © 2023 Frank!Framework. All rights reserved.