public class ResultBlock2Sender extends Result2StringWriter
ISenderWithParameters
log, paramList
Constructor and Description |
---|
ResultBlock2Sender() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeBlock(PipeLineSession session,
String streamId,
String blockName,
Map<String,Object> blocks) |
void |
closeDocument(PipeLineSession session,
String streamId) |
void |
configure() |
protected int |
decLevel(String streamId) |
protected int |
getCounter(String streamId) |
int |
getLevel(String streamId) |
protected int |
incCounter(String streamId) |
protected int |
incLevel(String streamId) |
void |
open() |
void |
openBlock(PipeLineSession session,
String streamId,
String blockName,
Map<String,Object> blocks) |
void |
openDocument(PipeLineSession session,
String streamId)
Called once, before the first record of a stream is presented to handleResult.
|
void |
setSender(ISender sender)
Sender to which each block of results is sent
|
createWriter, finalizeResult
closeRecordType, getWriter, handleResult, openRecordType, replacePattern, setBlockNamePattern, setOnCloseBlock, setOnCloseDocument, setOnOpenBlock, setOnOpenDocument, writeNewLine
addParameter, getParameterList, hasPrefix, isDefault, setBlockByRecordType, setDefault, setName, setPipe, setPrefix, setSuffix
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isBlockByRecordType
getName
getApplicationContext, getName
getConfigurationClassLoader
public void configure() throws ConfigurationException
configure
in interface IConfigurable
configure
in class AbstractResultHandler
ConfigurationException
public void open() throws SenderException
open
in interface IResultHandler
open
in class AbstractResultHandler
SenderException
public void close() throws SenderException
close
in interface IResultHandler
close
in class AbstractResultHandler
SenderException
public void openDocument(PipeLineSession session, String streamId) throws Exception
IResultHandler
openDocument
in interface IResultHandler
openDocument
in class ResultWriter
session
- current PipeLineSessionstreamId
- identification of the original file/stream/messageException
public void closeDocument(PipeLineSession session, String streamId)
closeDocument
in interface IResultHandler
closeDocument
in class ResultWriter
protected int getCounter(String streamId) throws SenderException
SenderException
protected int incCounter(String streamId) throws SenderException
SenderException
public int getLevel(String streamId) throws SenderException
SenderException
protected int incLevel(String streamId) throws SenderException
SenderException
protected int decLevel(String streamId) throws SenderException
SenderException
public void openBlock(PipeLineSession session, String streamId, String blockName, Map<String,Object> blocks) throws Exception
openBlock
in interface IResultHandler
openBlock
in class ResultWriter
Exception
public void closeBlock(PipeLineSession session, String streamId, String blockName, Map<String,Object> blocks) throws Exception
closeBlock
in interface IResultHandler
closeBlock
in class ResultWriter
Exception
public void setSender(ISender sender)
Copyright © 2023 Frank!Framework. All rights reserved.