public class XfbSender extends SenderWithParametersBase
parameterNamesMustBeUnique, paramList
log
Constructor and Description |
---|
XfbSender() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
configure() is called once at startup of the framework in the configure method of the owner of this sender. |
String |
getAppli() |
boolean |
getCopy() |
String |
getCopyPrefix() |
String |
getFlow() |
String |
getFt() |
String |
getNoname() |
String |
getScript() |
SenderResult |
sendMessage(Message message,
PipeLineSession session)
Send a message to some destination (as configured in the Sender object).
|
void |
setAppli(String appli) |
void |
setCopy(boolean copy)
When set to
true , the file is copied before calling the XFB script. |
void |
setCopyPrefix(String copyPrefix)
Prefix for the name of the copied or original filename.
|
void |
setFlow(String flow) |
void |
setFt(String ft) |
void |
setNoname(String noname) |
void |
setScript(String script)
Full pathname to the XFB script to be executed to transfer the file
|
addParameter, checkStringAttributeOrParameter, consumesSessionVariable, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueList
close, createBean, getLogPrefix, getName, open, setApplicationContext, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, isSynchronous, open, sendMessageOrThrow
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
public void configure() throws ConfigurationException
ISender
configure()
is called once at startup of the framework in the configure method of the owner of this sender.
Purpose of this method is to check whether the static configuration of the sender is correct.
As much as possible class-instantiating should take place in the configure()
or open()
method, to improve performance.configure
in interface IConfigurable
configure
in interface ISender
configure
in class SenderWithParametersBase
ConfigurationException
public SenderResult sendMessage(Message message, PipeLineSession session) throws SenderException, TimeoutException
ISender
configure()
method is called.
The following table shows the difference between synchronous and a-synchronous senders:
synchronous | a-synchronous | |
---|---|---|
ISender.isSynchronous() returns | true | false |
return value of sendMessage() is | the reply-message | the messageId of the message sent |
the correlationID specified with sendMessage() | may be ignored | is sent with the message |
a {link TimeOutException} | may be thrown if a timeout occurs waiting for a reply | should not be expected |
Multiple objects may try to call this method at the same time, from different threads.
Implementations of this method should therefore be thread-safe, or synchronized
.
SenderException
TimeoutException
public void setScript(String script)
public String getScript()
public void setFt(String ft)
public String getFt()
public void setFlow(String flow)
public String getFlow()
public void setAppli(String appli)
public String getAppli()
public void setNoname(String noname)
public String getNoname()
public void setCopy(boolean copy)
true
, the file is copied before calling the XFB script.
Reasons to copy the file:
- XFB will rename the file (prefix it with FXB_) and delete it.
- On Linux the sticky bit (drwxrws--- wasadmin xfbgw) isn't honoured with a move (only with a copy) (on AIX the sticky bit works for both move and copy).public boolean getCopy()
public void setCopyPrefix(String copyPrefix)
public String getCopyPrefix()
Copyright © 2023 Frank!Framework. All rights reserved.