@ElementType(value=TRANSLATOR) public class ReplacerPipe extends FixedForwardPipe
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
ReplacerPipe() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
checks for correct configuration of forward
|
PipeRunResult |
doPipe(Message message,
PipeLineSession session)
This is where the action takes place.
|
String |
getFind() |
String |
getLineSeparatorSymbol()
Sets the string the representation in find and replace of the line separator.
|
String |
getReplace() |
String |
getReplaceNonXmlChar() |
boolean |
isAllowUnicodeSupplementaryCharacters() |
boolean |
isReplaceNonXmlChars() |
void |
setAllowUnicodeSupplementaryCharacters(boolean b)
Whether to allow Unicode supplementary characters (like a smiley) during
replaceNonValidXmlCharacters |
void |
setFind(String find)
Sets the string that is searched for.
|
void |
setLineSeparatorSymbol(String string)
sets the string the representation in find and replace of the line separator
|
void |
setReplace(String replace)
Sets the string that will replace each of the occurrences of the find-string.
|
void |
setReplaceNonXmlChar(String replaceNonXmlChar)
character that will replace each non valid xml character (empty string is also possible) (use ¿ for inverted question mark)
|
void |
setReplaceNonXmlChars(boolean b)
Replace all non XML chars (not in the character range as specified by the XML specification) with
replaceNonValidXmlCharacters |
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
addParameter, consumesSessionVariable, 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
FixedForwardPipe
configure
in interface IConfigurable
configure
in interface IPipe
configure
in class FixedForwardPipe
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 void setFind(String find)
public String getFind()
public void setReplace(String replace)
public String getReplace()
public String getLineSeparatorSymbol()
public void setLineSeparatorSymbol(String string)
public void setReplaceNonXmlChars(boolean b)
replaceNonValidXmlCharacters
public boolean isReplaceNonXmlChars()
public void setReplaceNonXmlChar(String replaceNonXmlChar)
public String getReplaceNonXmlChar()
public void setAllowUnicodeSupplementaryCharacters(boolean b)
replaceNonValidXmlCharacters
public boolean isAllowUnicodeSupplementaryCharacters()
Copyright © 2023 Frank!Framework. All rights reserved.