public abstract class StreamingPipe extends FixedForwardPipe implements IOutputStreamingSupport
Modifier and Type | Field and Description |
---|---|
static String |
AUTOMATIC_STREAMING |
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
StreamingPipe() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canProvideOutputStream()
returns true when:
a) the pipe might be able to accept an input by providing an OutputStream, and
b) there are no side effects configured that prevent handing over its PipeRunResult to the calling pipe (e.g.
|
protected boolean |
canStreamToNextPipe()
called if the pipe implementation requests an OutputStream, to determine if there are side effects configured
that require the output of this pipe to be available at the return of the doPipe() method.
|
void |
configure()
checks for correct configuration of forward
|
protected IForwardTarget |
getNextPipe()
Find the target to receive this pipes output, i.e that could provide an output stream
|
protected MessageOutputStream |
getTargetStream(PipeLineSession session)
Provides a non-null MessageOutputStream, that the caller can use to obtain a Writer, OutputStream or ContentHandler.
|
boolean |
isStreamingActive() |
protected MessageOutputStream |
provideOutputStream(PipeLineSession session)
provide the outputstream, or null if a stream cannot be provided.
|
MessageOutputStream |
provideOutputStream(PipeLineSession session,
IForwardTarget next)
Don't override unless you're absolutely sure what you're doing!
|
void |
setStreamingActive(boolean streamingActive)
If true, then this pipe can provide an OutputStream to the previous pipe, to write its output to.
|
boolean |
supportsOutputStreamPassThrough()
Implementations should return
true when they do not require an OutputStream, but can
provide one to the preceding pipe if they are themselves provided with one from the next pipe. |
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
addParameter, consumesSessionVariable, createBean, doPipe, findForward, getAdapter, getEventSourceName, getForwards, getInSizeStatDummyObject, getOutSizeStatDummyObject, getParameterList, getParameterOverriddenAttributeValue, getParameterValueList, hasSizeStatistics, registerEvent, registerForward, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, start, stop, throwEvent
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getGetInputFromFixedValue, getGetInputFromSessionKey, getLocker, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, setPipeLine
getMaxThreads
getName
getApplicationContext, getName
getConfigurationClassLoader
getName
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
public static final String AUTOMATIC_STREAMING
public void configure() throws ConfigurationException
FixedForwardPipe
configure
in interface IConfigurable
configure
in interface IPipe
configure
in class FixedForwardPipe
ConfigurationException
protected IForwardTarget getNextPipe()
protected boolean canProvideOutputStream()
protected boolean canStreamToNextPipe()
protected MessageOutputStream provideOutputStream(PipeLineSession session) throws StreamingException
getNextPipe()
.StreamingException
public MessageOutputStream provideOutputStream(PipeLineSession session, IForwardTarget next) throws StreamingException
provideOutputStream
in interface IOutputStreamingSupport
StreamingException
protected MessageOutputStream getTargetStream(PipeLineSession session) throws StreamingException
StreamingException
public void setStreamingActive(boolean streamingActive)
public boolean isStreamingActive()
public boolean supportsOutputStreamPassThrough()
IOutputStreamingSupport
true
when they do not require an OutputStream, but can
provide one to the preceding pipe if they are themselves provided with one from the next pipe.supportsOutputStreamPassThrough
in interface IOutputStreamingSupport
Copyright © 2023 Frank!Framework. All rights reserved.