@Category(value="NN-Special") public class Afm2EdiFactSender extends Object implements ISender
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
logger |
static String |
TPNRTAG |
static String |
VERWERKTAG |
Constructor and Description |
---|
Afm2EdiFactSender() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Stop/close the sender and deallocate resources.
|
void |
configure()
configure() is called once at startup of the framework in the configure method of the owner of this sender. |
String |
execute(String aInput) |
char[] |
getCloseResultaat() |
String |
getDestination() |
char[] |
getInitResultaat() |
String |
getName() |
String |
getPostbus() |
String |
getTpnummer() |
boolean |
isSynchronous()
When
true , the result of sendMessage is the reply of the request. |
void |
open()
This method will be called to start the sender.
|
SenderResult |
sendMessage(Message message,
PipeLineSession session)
Send a message to some destination (as configured in the Sender object).
|
void |
setDestination(String newDestination) |
void |
setName(String name)
The functional name of the object.
|
void |
setPostbus(String newPostbus) |
void |
setTpnummer(String newTpnummer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consumesSessionVariable, sendMessageOrThrow
getApplicationContext
getConfigurationClassLoader
protected org.apache.logging.log4j.Logger logger
public static final String VERWERKTAG
public static final String TPNRTAG
public void configure()
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
public void open()
ISender
sendMessage()
method.public void close()
ISender
public boolean isSynchronous()
ISender
true
, the result of sendMessage is the reply of the request.isSynchronous
in interface ISender
public SenderResult sendMessage(Message message, PipeLineSession session) throws SenderException
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
.
sendMessage
in interface ISender
SenderException
public String execute(String aInput) throws DomBuilderException
DomBuilderException
public char[] getCloseResultaat()
public char[] getInitResultaat()
public void setName(String name)
INamedObject
setName
in interface INamedObject
public String getName()
getName
in interface IConfigurationAware
getName
in interface INamedObject
public void setDestination(String newDestination)
public String getDestination()
public void setPostbus(String newPostbus)
public String getPostbus()
public void setTpnummer(String newTpnummer)
public String getTpnummer()
Copyright © 2023 Frank!Framework. All rights reserved.