public interface JsValidator
Modifier and Type | Method and Description |
---|---|
String |
validate(String jsTemplate,
Collection<String> allowedVariables)
Check if the the given javascript fragment has no syntax errors.
|
String validate(String jsTemplate, Collection<String> allowedVariables)
jsTemplate
- The javascript template to validate.allowedVariables
- The only set of variables that can be referenced from the JS bodyCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.