@Category(value="Basic") @ElementType(value=TRANSLATOR) public class FixedResultPipe extends FixedForwardPipe
filename
or filenameSessionKey
is specified. Otherwise the
value of attribute returnString
is returned.
returnString
, filename
or filenameSessionKey
.replaceFrom
and replaceTo
if set.
Please note that the plain value of attribute replaceFrom
is matched, no ${...}
here.replaceFixedParams
.
Assume that there is a parameter with name xyz
. If replaceFixedParams
is false
, then
each occurrence of ${xyz}
is replaced by the parameter's value. Otherwise, the text xyz
is substituted. See Parameter
to see how parameter values are determined.substituteVars
is true
, then expressions ${...}
are substituted using
system properties, pipelinesession variables and application properties. Please note that
no ${...}
patterns are left if the initial string came from attribute returnString
, because
any ${...}
pattern in attribute returnString
is substituted when the configuration is loaded.styleSheetName
is set, then the referenced XSLT stylesheet is applied to the resulting string.xyz
, the string ${xyz}
or
xyz
(if replaceFixedParams
is true) is substituted by the parameter's value.parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
FixedResultPipe() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
checks for correct configuration, and translates the filename to
a file, to check existence.
|
PipeRunResult |
doPipe(Message message,
PipeLineSession session)
This is where the action takes place.
|
void |
setFilename(String filename)
Name of the file containing the result message.
|
void |
setFileName(String fileName)
Deprecated.
|
void |
setFilenameSessionKey(String filenameSessionKey)
Name of the session key containing the file name of the file containing the result message.
|
void |
setFileNameSessionKey(String fileNameSessionKey)
Deprecated.
|
void |
setReplaceFixedParams(boolean b)
When set
true , parameter replacement matches name-of-parameter , not ${name-of-parameter} |
void |
setReplaceFrom(String replaceFrom)
If set, every occurrence of this attribute's value is replaced by the value of
replaceTo . |
void |
setReplaceTo(String replaceTo)
See
replaceFrom . |
void |
setReturnString(String returnString)
Returned message.
|
void |
setStyleSheetName(String styleSheetName)
File name of XSLT stylesheet to apply.
|
void |
setSubstituteVars(boolean substitute)
Should values between ${ and } be resolved.
|
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
addParameter, consumesSessionVariable, createBean, 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 void configure() throws ConfigurationException
returnString
, so that the returnString
may always be returned.configure
in interface IConfigurable
configure
in interface IPipe
configure
in class FixedForwardPipe
ConfigurationException
public PipeRunResult doPipe(Message message, PipeLineSession session) throws PipeRunException
AbstractPipe
doPipe
in interface IPipe
doPipe
in class AbstractPipe
PipeRunException
public void setSubstituteVars(boolean substitute)
@Deprecated @ConfigurationWarning(value="attribute \'fileName\' is replaced with \'filename\'") public void setFileName(String fileName)
public void setFilename(String filename)
@Deprecated @ConfigurationWarning(value="attribute \'fileNameSessionKey\' is replaced with \'filenameSessionKey\'") public void setFileNameSessionKey(String fileNameSessionKey)
public void setFilenameSessionKey(String filenameSessionKey)
public void setReturnString(String returnString)
public void setReplaceFrom(String replaceFrom)
replaceTo
.public void setReplaceTo(String replaceTo)
replaceFrom
.public void setStyleSheetName(String styleSheetName)
public void setReplaceFixedParams(boolean b)
true
, parameter replacement matches name-of-parameter
, not ${name-of-parameter}
Copyright © 2023 Frank!Framework. All rights reserved.