Package org.frankframework.larva
Class FileSender
java.lang.Object
org.frankframework.larva.FileSender
- All Implemented Interfaces:
FrankElement
,HasApplicationContext
,HasName
,IConfigurable
,IScopeProvider
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
File sender for the Test Tool.
- Author:
- Jaco de Groot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Configure this component.void
sendMessage
(Message message) Send the message to the specified file.void
setCheckDelete
(boolean checkDelete) Set check delete.void
setCreatePath
(boolean createPath) void
setDeletePath
(boolean deletePath) void
setEncoding
(String encoding) Set the encoding to use when writing the file.void
setFilename
(String filename) Set the filename to write the message to.void
setInterval
(long interval) Set the interval time in milliseconds between checks for file deletion.void
setOverwrite
(boolean overwrite) Set the overwrite file.void
setRunAnt
(boolean runAnt) void
setTimeout
(long timeout) Set the time out in milliseconds waiting for deletion of the file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoader
-
Constructor Details
-
FileSender
public FileSender()
-
-
Method Details
-
configure
Description copied from interface:IConfigurable
Configure this component.configure()
is called once at startup of the framework in the configure method of the owner of thisIConfigurable
. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in theconfigure()
, to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configure
in interfaceIConfigurable
- Throws:
ConfigurationException
- in case it was not able to configure the component.
-
sendMessage
Send the message to the specified file. After writing the message to file, this method will check if the file is deleted by another party (detect reading of the file).- Parameters:
message
- the message to write to file- Throws:
TimeoutException
SenderException
-
getMessage
-
setFilename
Set the filename to write the message to. -
setEncoding
Set the encoding to use when writing the file. -
setCheckDelete
public void setCheckDelete(boolean checkDelete) Set check delete. -
setTimeout
public void setTimeout(long timeout) Set the time out in milliseconds waiting for deletion of the file. -
setInterval
public void setInterval(long interval) Set the interval time in milliseconds between checks for file deletion. -
setOverwrite
public void setOverwrite(boolean overwrite) Set the overwrite file. -
setDeletePath
public void setDeletePath(boolean deletePath) -
setCreatePath
public void setCreatePath(boolean createPath) -
setRunAnt
public void setRunAnt(boolean runAnt)
-