public class RegexReplaceStringTransformer extends RewriteRule implements StringTransformer
regex in input
with replacement. If the context has disable-rewrite-
beanName policy, transformation is disabled.| Constructor and Description |
|---|
RegexReplaceStringTransformer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getRegex() |
String |
getReplacement() |
String |
getUrlScope() |
String |
rewrite(ReplayParseContext context,
String policy,
String input) |
void |
setRegex(String regex) |
void |
setReplacement(String replacement) |
void |
setUrlScope(String urlScope)
urlkey substring for conditional application of
this transformation. |
String |
transform(ReplayParseContext context,
String input)
transforms text with certain rewrite rules.
|
getName, setBeanName, setNamepublic String transform(ReplayParseContext context, String input)
StringTransformerRefactoring: change input type to CharSequence.
transform in interface StringTransformercontext - ReplayParseContextinput - text data to be transformedpublic String getRegex()
public void setRegex(String regex)
regex - the regex to setpublic String getReplacement()
public void setReplacement(String replacement)
replacement - the replacement to setpublic String rewrite(ReplayParseContext context, String policy, String input)
rewrite in class RewriteRulepublic String getUrlScope()
public void setUrlScope(String urlScope)
urlkey substring for conditional application of
this transformation. If specified, transformation is applied
only when urlkey contains urlScope.
Caveat: this functionality is being removed in favor of
more flexible and scalable RewritingStringTransformer
framework.
urlScope - Copyright © 2005–2017 IIPC. All rights reserved.