@Deprecated @ConfigurationWarning(value="Please replace with FtpFileSystemListener") public class FtpListener extends FtpSession implements IPullingListener<String>, RunStateEnquiring
FtpSession.FileType, FtpSession.FtpType, FtpSession.Prot
ftpClient, log
Constructor and Description |
---|
FtpListener()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterMessageProcessed(PipeLineResult processResult,
Object rawMessageOrWrapper,
Map<String,Object> context)
Deprecated.
Called to perform actions (like committing or sending a reply) after a message has been processed by the
Pipeline.
|
protected boolean |
canGoOn()
Deprecated.
|
void |
close()
Deprecated.
Close all resources used for listening.
|
void |
closeThread(Map<String,Object> threadContext)
Deprecated.
Finalizes a message receiving thread.
|
void |
configure()
Deprecated.
Configure does some basic checks (directoryProcessedFiles is a directory, inputDirectory is a directory, wildcard is filled etc.);
|
Message |
extractMessage(String rawMessage,
Map<String,Object> threadContext)
Deprecated.
Returns a string of the rawMessage
|
String |
getIdFromRawMessage(String rawMessage,
Map<String,Object> threadContext)
Deprecated.
Returns the name of the file in process (the 'archiveFile(File)' archived} file) concatenated with the
record number.
|
String |
getRawMessage(Map<String,Object> threadContext)
Deprecated.
Retrieves a single record from a file.
|
String |
getRemoteDirectory()
Deprecated.
|
long |
getResponseTime()
Deprecated.
|
void |
open()
Deprecated.
Prepares the listener for receiving messages.
|
Map<String,Object> |
openThread()
Deprecated.
Prepares a thread for receiving messages.
|
void |
setRemoteDirectory(String string)
Deprecated.
remote directory from which files have to be downloaded
|
void |
setResponseTime(long responseTime)
Deprecated.
Time in milliseconds between each poll interval
|
void |
SetRunStateEnquirer(RunStateEnquirer enquirer)
Deprecated.
|
String |
toString()
Deprecated.
|
checkReply, closeClient, deleteRemote, get, isConsoleKnownHostsVerifier, ls, lsAsString, openClient, put, setAllowSelfSignedCertificates, setAuthAlias, setCertificate, setCertificateAuthAlias, setCertificatePassword, setCertificateType, setConsoleKnownHostsVerifier, setFileType, setFtpType, setFtpTypeDescription, setHost, setIgnoreCertificateExpiredException, setKeyboardInteractive, setKeyManagerAlgorithm, setKeystore, setKeystoreAlias, setKeystoreAliasAuthAlias, setKeystoreAliasPassword, setKeystoreAuthAlias, setKeystorePassword, setKeystoreType, setKnownHostsPath, setMessageIsContent, setName, setPassive, setPassword, setPort, setPrefCSEncryption, setPrefSCEncryption, setPrivateKeyAuthAlias, setPrivateKeyFilePath, setPrivateKeyPassword, setProt, setProtP, setProxyAuthAlias, setProxyHost, setProxyPassword, setProxyPort, setProxyTransportType, setProxyUsername, setTrustManagerAlgorithm, setTruststore, setTruststoreAuthAlias, setTruststorePassword, setTruststoreType, setUsername, setVerifyHostname
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
getKeyManagerAlgorithm, getKeystore, getKeystoreAlias, getKeystoreAliasAuthAlias, getKeystoreAliasPassword, getKeystoreAuthAlias, getKeystorePassword, getKeystoreType
getTrustManagerAlgorithm, getTruststore, getTruststoreAuthAlias, getTruststorePassword, getTruststoreType, isAllowSelfSignedCertificates, isIgnoreCertificateExpiredException, isVerifyHostname
public void afterMessageProcessed(PipeLineResult processResult, Object rawMessageOrWrapper, Map<String,Object> context) throws ListenerException
IListener
afterMessageProcessed
in interface IListener<String>
ListenerException
public void open() throws ListenerException
IListener
open()
is called once each time the listener is started.open
in interface IListener<String>
ListenerException
public void close() throws ListenerException
IListener
close
in interface IListener<String>
ListenerException
public Map<String,Object> openThread() throws ListenerException
IPullingListener
openThread
in interface IPullingListener<String>
ListenerException
public void closeThread(Map<String,Object> threadContext) throws ListenerException
IPullingListener
IListener.close()
is called.closeThread
in interface IPullingListener<String>
ListenerException
public void configure() throws ConfigurationException
configure
in interface IConfigurable
configure
in interface IListener<String>
configure
in class FtpSession
ConfigurationException
public String getIdFromRawMessage(String rawMessage, Map<String,Object> threadContext) throws ListenerException
getIdFromRawMessage
in interface IListener<String>
ListenerException
public String getRawMessage(Map<String,Object> threadContext) throws ListenerException
getRawMessage
in interface IPullingListener<String>
ListenerException
public Message extractMessage(String rawMessage, Map<String,Object> threadContext) throws ListenerException
extractMessage
in interface IListener<String>
ListenerException
protected boolean canGoOn()
public void SetRunStateEnquirer(RunStateEnquirer enquirer)
SetRunStateEnquirer
in interface RunStateEnquiring
public void setResponseTime(long responseTime)
public long getResponseTime()
public void setRemoteDirectory(String string)
public String getRemoteDirectory()
Copyright © 2023 Frank!Framework. All rights reserved.