Search in sources :

Example 1 with SenderPipe

use of nl.nn.adapterframework.pipes.SenderPipe in project iaf by ibissource.

the class ParallelXsltTest method createPipe.

@Override
public SenderPipe createPipe() {
    SenderPipe pipe = new SenderPipe();
    SenderSeries psenders = createSenderContainer();
    xsltSenders = new ArrayList<XsltSender>();
    for (int i = 0; i < NUM_SENDERS; i++) {
        XsltSender sender = new XsltSender();
        // sender.setSessionKey("out"+i);
        sender.setOmitXmlDeclaration(true);
        sender.addParameter(new Parameter("header", "header" + i));
        session.put("sessionKey" + i, "sessionKeyValue" + i);
        sender.addParameter(ParameterBuilder.create().withName("sessionKey").withSessionKey("sessionKey" + i));
        autowireByType(sender);
        psenders.registerSender(sender);
        xsltSenders.add(sender);
    }
    session.put("sessionKeyGlobal", "sessionKeyGlobalValue");
    psenders.addParameter(ParameterBuilder.create().withName("sessionKeyGlobal").withSessionKey("sessionKeyGlobal"));
    pipe.setSender(psenders);
    return pipe;
}
Also used : SenderPipe(nl.nn.adapterframework.pipes.SenderPipe) Parameter(nl.nn.adapterframework.parameters.Parameter) XsltSender(nl.nn.adapterframework.senders.XsltSender) SenderSeries(nl.nn.adapterframework.senders.SenderSeries)

Example 2 with SenderPipe

use of nl.nn.adapterframework.pipes.SenderPipe in project iaf by ibissource.

the class XsltSenderTest method createPipe.

@Override
public SenderPipe createPipe() {
    SenderPipe pipe = new SenderPipe();
    sender = new XsltSender();
    autowireByType(sender);
    pipe.setSender(sender);
    return pipe;
}
Also used : SenderPipe(nl.nn.adapterframework.pipes.SenderPipe) XsltSender(nl.nn.adapterframework.senders.XsltSender)

Aggregations

SenderPipe (nl.nn.adapterframework.pipes.SenderPipe)2 XsltSender (nl.nn.adapterframework.senders.XsltSender)2 Parameter (nl.nn.adapterframework.parameters.Parameter)1 SenderSeries (nl.nn.adapterframework.senders.SenderSeries)1