public class JspChecker extends AbstractChecker
Eg. nested foreach, quotes in quote, <a> name, System.out, getParameter, <img HTML 5 conformance
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IGNORE_CHECK_ANAME |
static java.lang.String |
IGNORE_CHECK_GETPARAMETER |
static java.lang.String |
IGNORE_CHECK_I18N
Prefix property to allow files or dirs to be excluded from test checkI18N.
|
static java.lang.String |
IGNORE_CHECK_ICONSRC |
static java.lang.String |
IGNORE_CHECK_IMAGE |
static java.lang.String |
IGNORE_CHECK_JAVABEAN |
static java.lang.String |
IGNORE_CHECK_LEGACYINCLUDES |
static java.lang.String |
IGNORE_CHECK_MODALPICTURE |
static java.lang.String |
IGNORE_CHECK_NESTED_FOREACH |
static java.lang.String |
IGNORE_CHECK_QUOTES |
static java.lang.String |
IGNORE_CHECK_SYSOUT |
static java.lang.String |
REVISION |
static java.lang.String |
VERIFIED_FOR_SECURITY
If a JSP line contains this constant, it will be ignored by JspChecker.checkGetParameter()
|
CHANNEL, PROP_SUFFIX_FILE_FILTER
Constructor and Description |
---|
JspChecker() |
Modifier and Type | Method and Description |
---|---|
static CheckResult |
checkAll(java.io.File webappDir) |
static void |
checkAName(CheckResult result,
CheckedFile file,
CheckerContext checkerContext) |
static void |
checkGetParameter(CheckResult result,
CheckedFile file,
CheckerContext checkerContext) |
static void |
checkI18N(CheckResult result,
CheckedFile file,
CheckerContext checkerContext)
Checks that JSP/JSPF do not contains invalid I18N properties inside glp("...")
|
static void |
checkIconSrc(CheckResult result,
CheckedFile file,
CheckerContext checkerContext)
Checks that a |
static void |
checkImage(CheckResult result,
CheckedFile file,
CheckerContext checkerContext) |
static void |
checkJavaBean(CheckResult result,
CheckedFile file,
CheckerContext checkerContext) |
static void |
checkModalPicture(CheckResult result,
CheckedFile file,
CheckerContext checkerContext)
Checks that a |
static void |
checkNestedForeach(CheckResult result,
CheckedFile file,
CheckerContext checkerContext) |
static void |
checkQuoteInQuote(CheckResult result,
CheckedFile file,
CheckerContext checkerContext) |
static void |
checkSystemOut(CheckResult result,
CheckedFile file,
CheckerContext checkerContext) |
static void |
main(java.lang.String[] args) |
loadLanguageProperties, loadProperties, loadProperties, saveError
public static final java.lang.String REVISION
public static final java.lang.String IGNORE_CHECK_I18N
Ex:
com.jalios.jcms.tools.JspChecker.checkI18N.ignored.{custom-suffix}: plugins/ExcludedPlugin/
com.jalios.jcms.tools.JspChecker.checkI18N.ignored.{custom-suffix}: plugins/ExcludedPlugin/excludedFile1.jsp, plugins/ExcludedPlugin/excludedFile2.jsp
public static final java.lang.String IGNORE_CHECK_NESTED_FOREACH
public static final java.lang.String IGNORE_CHECK_QUOTES
public static final java.lang.String IGNORE_CHECK_ANAME
public static final java.lang.String IGNORE_CHECK_SYSOUT
public static final java.lang.String IGNORE_CHECK_GETPARAMETER
public static final java.lang.String IGNORE_CHECK_IMAGE
public static final java.lang.String IGNORE_CHECK_MODALPICTURE
public static final java.lang.String IGNORE_CHECK_ICONSRC
public static final java.lang.String IGNORE_CHECK_JAVABEAN
public static final java.lang.String IGNORE_CHECK_LEGACYINCLUDES
public static final java.lang.String VERIFIED_FOR_SECURITY
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public static CheckResult checkAll(java.io.File webappDir) throws java.io.IOException
java.io.IOException
public static void checkNestedForeach(CheckResult result, CheckedFile file, CheckerContext checkerContext)
public static void checkQuoteInQuote(CheckResult result, CheckedFile file, CheckerContext checkerContext)
public static void checkAName(CheckResult result, CheckedFile file, CheckerContext checkerContext)
public static void checkSystemOut(CheckResult result, CheckedFile file, CheckerContext checkerContext)
public static void checkGetParameter(CheckResult result, CheckedFile file, CheckerContext checkerContext) throws java.io.IOException
java.io.IOException
public static void checkImage(CheckResult result, CheckedFile file, CheckerContext checkerContext) throws java.io.IOException
java.io.IOException
public static void checkI18N(CheckResult result, CheckedFile file, CheckerContext checkerContext) throws java.io.IOException
java.io.IOException
public static void checkModalPicture(CheckResult result, CheckedFile file, CheckerContext checkerContext) throws java.io.IOException
webappDir
- the webapp dir to load wbeapp's File imagesproperties
- the JCMS properties to check if picture is an existing Propertyjava.io.IOException
public static void checkIconSrc(CheckResult result, CheckedFile file, CheckerContext checkerContext) throws java.io.IOException
webappDir
- the webapp dir to load wbeapp's File imagesproperties
- the JCMS properties to check if picture is an existing Propertyjava.io.IOException
public static void checkJavaBean(CheckResult result, CheckedFile file, CheckerContext checkerContext) throws java.io.IOException
java.io.IOException
Copyright © 2001-2017 Jalios SA. All Rights Reserved.