public class JSSyntaxScannerFilter
JSSyntaxScannerFilter
looks for Javascript syntax errors in code sent to the browser. The purpose of this filter is to catch syntax errors that are poorly reported on by the browsers - such as, for example, the trailing comma bug. Note that if the upstream content is served compressed it will be ignored by the scanner. Typical cases include: FileAssembler virtual urls with compress=true directives, compressed FileDownload content, or CompressionFilter if registered upstream from this filter.
Modifier and Type | Field and Description |
---|---|
boolean | scanAssembledFiles If you're using the Assembly module, this parameter controls whether or not assembled files are scanned by this filter. |
java.util.List | scannableMimeTypes Comma or separated list of scannable mimeTypes. |
boolean | sendErrorsToBrowser If set to true, then any syntax errors reported by this filter are sent to the browser in lieu of the content containing the errors, the errors are also still logged in the server logs. |
public boolean scanAssembledFiles
This parameter defaults to false.
public java.util.List scannableMimeTypes
public boolean sendErrorsToBrowser
This parameter defaults to true.