public class FileSender extends Object implements IConfigurable
Constructor and Description |
---|
FileSender() |
Modifier and Type | Method and Description |
---|---|
void |
configure() |
String |
getMessage() |
void |
sendMessage(String 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
public void configure() throws ConfigurationException
configure
in interface IConfigurable
ConfigurationException
public void sendMessage(String message) throws TimeoutException, SenderException
message
- the message to write to fileTimeoutException
SenderException
public String getMessage() throws IOException
IOException
public void setFilename(String filename)
public void setEncoding(String encoding)
public void setCheckDelete(boolean checkDelete)
public void setTimeOut(long timeOut)
public void setInterval(long interval)
public void setOverwrite(boolean overwrite)
public void setDeletePath(boolean deletePath)
public void setCreatePath(boolean createPath)
public void setRunAnt(boolean runAnt)
Copyright © 2023 Frank!Framework. All rights reserved.