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 TypeMethodDescriptionvoidConfigure this component.voidsendMessage(Message message) Send the message to the specified file.voidsetCheckDelete(boolean checkDelete) Set check delete.voidsetCreatePath(boolean createPath) voidsetDeletePath(boolean deletePath) voidsetEncoding(String encoding) Set the encoding to use when writing the file.voidsetFilename(String filename) Set the filename to write the message to.voidsetInterval(long interval) Set the interval time in milliseconds between checks for file deletion.voidsetOverwrite(boolean overwrite) Set the overwrite file.voidsetRunAnt(boolean runAnt) voidsetTimeout(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, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoader
-
Constructor Details
-
FileSender
public FileSender()
-
-
Method Details
-
configure
Description copied from interface:IConfigurableConfigure 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:
configurein 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:
TimeoutExceptionSenderException
-
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)
-