public class DisableJSIncludeRewriteRule extends RewriteRule
RewriteRule for disabling script inclusion
(<SCRIPT SRC="..."></SCRIPT>).
Policy name shall have script filename, followed by "=".
If SRC attribute value contains the filename,
SCRIPT tag will be disabled.
FastArchivalUrlReplayParseEventHandler has special
handling of SCRIPT tag. It passes the value of
SRC attribute as inputSrc. When this rule
returns null or empty string, SCRIPT tag
is disabled by replacing SRC attribute value with
empty text.
| Constructor and Description |
|---|
DisableJSIncludeRewriteRule() |
| Modifier and Type | Method and Description |
|---|---|
String |
rewrite(ReplayParseContext context,
String policy,
String inputSrc) |
getName, setBeanName, setNamepublic String rewrite(ReplayParseContext context, String policy, String inputSrc)
rewrite in class RewriteRuleCopyright © 2005–2017 IIPC. All rights reserved.