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, setName
public String rewrite(ReplayParseContext context, String policy, String inputSrc)
rewrite
in class RewriteRule
Copyright © 2005–2015 IIPC. All rights reserved.