public class MetaRefreshUrlStringTransformer extends URLStringTransformer
CONTENT attribute.
Extracts URL part in CONTENT attribute value, and translates it.
Possible Refactoring:
There's no strong reason this class should extend URLStringTransformer.
Since javascript: URI in META-REFRESH is rejected by most browsers,
transform method could simply call ReplayParseContext.contextualizeUrl(String)
rather than super.transform. As META-REFRESH is found only in HTML
document, there's no need for flags member either.
| Constructor and Description |
|---|
MetaRefreshUrlStringTransformer() |
| Modifier and Type | Method and Description |
|---|---|
String |
transform(ReplayParseContext context,
String input)
transforms text with certain rewrite rules.
|
getFlags, getJsTransformer, setFlags, setJsTransformerpublic String transform(ReplayParseContext context, String input)
StringTransformerRefactoring: change input type to CharSequence.
transform in interface StringTransformertransform in class URLStringTransformercontext - ReplayParseContextinput - text data to be transformedCopyright © 2005–2017 IIPC. All rights reserved.