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, setJsTransformer
public String transform(ReplayParseContext context, String input)
StringTransformer
Refactoring: change input
type to CharSequence
.
transform
in interface StringTransformer
transform
in class URLStringTransformer
context
- ReplayParseContextinput
- text data to be transformedCopyright © 2005–2015 IIPC. All rights reserved.