public abstract class AbstractChecker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static Channel |
CHANNEL |
protected static org.apache.commons.io.filefilter.SuffixFileFilter |
PROP_SUFFIX_FILE_FILTER |
static java.lang.String |
REVISION |
| Constructor and Description |
|---|
AbstractChecker() |
| Modifier and Type | Method and Description |
|---|---|
static LangProperties |
loadLanguageProperties(java.io.File webappDir) |
static LangProperties |
loadProperties(java.io.File webappDir)
Loads all plugins' plugin.prop, custom.prop, and jcms.prop.
|
static LangProperties |
loadProperties(java.io.File webappDir,
org.apache.commons.io.filefilter.IOFileFilter fileFilter)
Loads all plugins' plugin.prop, custom.prop, and jcms.prop, filtering on given fileFilter.
Only accept *.prop file. |
protected static void |
saveError(CheckResult result,
java.lang.String msg,
org.apache.log4j.Logger logger)
Logs the msg as warning Level, and append it to the global CheckResult object.
|
public static final java.lang.String REVISION
protected static final Channel CHANNEL
protected static final org.apache.commons.io.filefilter.SuffixFileFilter PROP_SUFFIX_FILE_FILTER
protected static void saveError(CheckResult result, java.lang.String msg, org.apache.log4j.Logger logger)
result - the global check result.msg - the error descriptionlogger - the logger to use for warningpublic static LangProperties loadProperties(java.io.File webappDir) throws java.io.IOException
webappDir - the webapp dir to load properties from.java.io.IOException - if an exception occurs while loading propertiespublic static LangProperties loadProperties(java.io.File webappDir, org.apache.commons.io.filefilter.IOFileFilter fileFilter) throws java.io.IOException
webappDir - the webapp dir to load properties from.fileFilter - an optional user FileFilter to escape property file(s) (add is not possible since we use a AndFileFilter computation)java.io.IOException - if an exception occurs while loading propertiespublic static LangProperties loadLanguageProperties(java.io.File webappDir) throws java.io.IOException
java.io.IOExceptionCopyright © 2001-2017 Jalios SA. All Rights Reserved.