use of nl.nn.adapterframework.senders.SenderBase in project iaf by ibissource.
the class InputOutputSenderWrapperProcessorTest method getSenderWrapper.
public SenderWrapperBase getSenderWrapper() {
SenderSeries senderSeries = new SenderSeries();
senderSeries.registerSender(new SenderBase() {
@Override
public Message sendMessage(Message message, PipeLineSession session) throws SenderException, TimeoutException {
try {
return new Message("Sender 1: [" + message.asString() + "]");
} catch (IOException e) {
throw new SenderException(e);
}
}
});
senderSeries.registerSender(new SenderBase() {
@Override
public Message sendMessage(Message message, PipeLineSession session) throws SenderException, TimeoutException {
try {
secondSenderOutput = "Sender 2: [" + message.asString() + "]";
return new Message(secondSenderOutput);
} catch (IOException e) {
throw new SenderException(e);
}
}
});
return senderSeries;
}
Aggregations