@ElementType(value=ROUTER) public class XmlIf extends AbstractPipe
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
XmlIf() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
|
boolean |
consumesSessionVariable(String sessionKey)
returns
true if the pipe or one of its children use the named session variable. |
PipeRunResult |
doPipe(Message message,
PipeLineSession session)
This is where the action takes place.
|
protected String |
makeStylesheet(String xpathExpression,
String resultVal) |
void |
setElseForwardName(String elseForwardName)
forward returned when 'false'
|
void |
setExpressionValue(String expressionValue)
a string to compare the result of the xpathexpression (or the input-message itself) to.
|
void |
setNamespaceAware(boolean b)
controls namespace-awareness of XSLT transformation
|
void |
setNamespaceDefs(String namespaceDefs)
namespace defintions for xpathExpression.
|
void |
setRegex(String regex)
regular expression to be applied to the input-message (ignored if xpathexpression is specified).
|
void |
setSessionKey(String sessionKey)
Deprecated.
|
void |
setThenForwardName(String thenForwardName)
forward returned when
'true' |
void |
setXpathExpression(String string)
xpath expression to be applied to the input-message.
|
void |
setXsltVersion(int xsltVersion)
If set to
2 or 3 a Saxon (net.sf.saxon) xslt processor 2.0 or 3.0 respectively will be used, otherwise xslt processor 1.0 (org.apache.xalan) |
addParameter, createBean, findForward, getAdapter, getEventSourceName, getForwards, getInSizeStatDummyObject, getOutSizeStatDummyObject, getParameterList, 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, throwEvent
getMaxThreads
getName
getApplicationContext, getName
getConfigurationClassLoader
getName
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
public void configure() throws ConfigurationException
AbstractPipe
configure()
is called after the Pipeline
is registered
at the Adapter
. Purpose of this method is to reduce
creating connections to databases etc. in the doPipe()
method.
As much as possible class-instantiating should take place in the
configure()
method, to improve performance.configure
in interface IConfigurable
configure
in interface IPipe
configure
in class AbstractPipe
ConfigurationException
public PipeRunResult doPipe(Message message, PipeLineSession session) throws PipeRunException
IPipe
FixedResultPipe
, the Pipe
can schedule the input to be closed at session exit, by calling Message.closeOnCloseOf(PipeLineSession, String)
This allows the previous Pipe to release any resources (e.g. connections) that it might have kept open
until the message was consumed. Doing so avoids connections leaking from pools, while it enables
efficient streaming processing of data while it is being read from a stream.PipeRunException
public boolean consumesSessionVariable(String sessionKey)
IPipe
true
if the pipe or one of its children use the named session variable.
Callers can use this to determine if a message needs to be preserved.consumesSessionVariable
in interface IPipe
consumesSessionVariable
in class AbstractPipe
@Deprecated @ConfigurationWarning(value="Please use getInputFromSessionKey instead.") public void setSessionKey(String sessionKey)
public void setExpressionValue(String expressionValue)
public void setThenForwardName(String thenForwardName)
'true'
public void setElseForwardName(String elseForwardName)
public void setXpathExpression(String string)
public void setRegex(String regex)
public void setXsltVersion(int xsltVersion)
2
or 3
a Saxon (net.sf.saxon) xslt processor 2.0 or 3.0 respectively will be used, otherwise xslt processor 1.0 (org.apache.xalan)public void setNamespaceDefs(String namespaceDefs)
prefix=namespaceuri
-definitions.public void setNamespaceAware(boolean b)
Copyright © 2023 Frank!Framework. All rights reserved.