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

public class FileSender extends Object implements IConfigurable, FrankElement
File sender for the Test Tool.
Author:
Jaco de Groot
  • Constructor Details

    • FileSender

      public FileSender()
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      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 this IConfigurable. 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 the configure(), to improve performance.

      In the case of a container, this will propagate the configure signal to all components that apply.

      Specified by:
      configure in interface IConfigurable
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • sendMessage

      public void sendMessage(Message message) throws TimeoutException, SenderException
      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

      public Message getMessage()
    • setFilename

      public void setFilename(String filename)
      Set the filename to write the message to.
    • setEncoding

      public void setEncoding(String encoding)
      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)