Search in sources :

Example 1 with JsonXslt3XmlHandler

use of nl.nn.adapterframework.stream.xml.JsonXslt3XmlHandler in project iaf by ibissource.

the class JsonXsltSender method provideOutputStream.

@Override
public MessageOutputStream provideOutputStream(PipeLineSession session, IForwardTarget next) throws StreamingException {
    if (!canProvideOutputStream()) {
        log.debug("sender [{}] cannot provide outputstream", () -> getName());
        return null;
    }
    ThreadConnector threadConnector = isStreamingXslt() ? new ThreadConnector(this, threadLifeCycleEventListener, txManager, session) : null;
    MessageOutputStream target = MessageOutputStream.getTargetStream(this, session, next);
    ContentHandler handler = createHandler(null, threadConnector, session, target);
    JsonEventHandler jsonEventHandler = new JsonXslt3XmlHandler(handler);
    return new MessageOutputStream(this, jsonEventHandler, target, threadLifeCycleEventListener, txManager, session, threadConnector);
}
Also used : MessageOutputStream(nl.nn.adapterframework.stream.MessageOutputStream) JsonEventHandler(nl.nn.adapterframework.stream.JsonEventHandler) ThreadConnector(nl.nn.adapterframework.stream.ThreadConnector) ContentHandler(org.xml.sax.ContentHandler) JsonXslt3XmlHandler(nl.nn.adapterframework.stream.xml.JsonXslt3XmlHandler)

Aggregations

JsonEventHandler (nl.nn.adapterframework.stream.JsonEventHandler)1 MessageOutputStream (nl.nn.adapterframework.stream.MessageOutputStream)1 ThreadConnector (nl.nn.adapterframework.stream.ThreadConnector)1 JsonXslt3XmlHandler (nl.nn.adapterframework.stream.xml.JsonXslt3XmlHandler)1 ContentHandler (org.xml.sax.ContentHandler)1