use of nl.nn.adapterframework.stream.JsonEventHandler 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);
}
Aggregations