public class PermissionChecker
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.util.regex.Pattern |
AJAXBUTTON_PATTERN |
static java.util.regex.Pattern |
AJAXBUTTON2_PATTERN |
static java.util.regex.Pattern |
AJAXBUTTON3_PATTERN |
static java.util.regex.Pattern |
AJAXBUTTON4_PATTERN |
static java.util.regex.Pattern |
FORM_PATTERN |
static java.util.regex.Pattern |
FORM2_PATTERN |
protected static org.apache.commons.logging.Log |
log |
static java.lang.String |
SQL_END |
static java.lang.String |
SQL_FILE |
static java.lang.String |
SQL_START |
static java.lang.String |
TEMPLATES |
static java.util.regex.Pattern[] |
URL_PATTERNS |
构造器和说明 |
---|
PermissionChecker() |
限定符和类型 | 方法和说明 |
---|---|
private static void |
addPageUrl(java.lang.String url,
java.util.Set<java.lang.String> pageUrlSet) |
private static void |
addUrl(java.lang.String url,
java.util.Set<java.lang.String> authorizedUrlSet) |
private static void |
addUrlInPage(java.lang.String pageContent,
java.util.regex.Pattern[] patterns,
java.util.Set<java.lang.String> pageUrlSet) |
private static void |
dealLine(java.lang.String line,
java.util.Set<java.lang.String> authorizedUrlSet) |
private static void |
dealParameter(java.lang.String parameter,
java.util.Set<java.lang.String> authorizedUrlSet) |
private static void |
getAuthorizedUrl(java.lang.String filePath,
java.lang.String start,
java.lang.String end,
java.util.Set<java.lang.String> authorizedUrlSet) |
private static void |
getPageUrl(java.lang.String filePath,
java.util.regex.Pattern[] patterns,
java.util.Set<java.lang.String> pageUrlSet) |
static void |
main(java.lang.String[] args) |
private static void |
scanPageFile(java.nio.file.Path parentPath,
java.nio.file.Path filePath,
java.util.regex.Pattern[] patterns,
java.util.Set<java.lang.String> pageUrlSet) |
protected static final org.apache.commons.logging.Log log
public static final java.lang.String SQL_FILE
public static final java.lang.String SQL_START
public static final java.lang.String SQL_END
public static final java.lang.String TEMPLATES
public static final java.util.regex.Pattern FORM_PATTERN
public static final java.util.regex.Pattern FORM2_PATTERN
public static final java.util.regex.Pattern AJAXBUTTON_PATTERN
public static final java.util.regex.Pattern AJAXBUTTON2_PATTERN
public static final java.util.regex.Pattern AJAXBUTTON3_PATTERN
public static final java.util.regex.Pattern AJAXBUTTON4_PATTERN
public static final java.util.regex.Pattern[] URL_PATTERNS
public static void main(java.lang.String[] args)
private static void getPageUrl(java.lang.String filePath, java.util.regex.Pattern[] patterns, java.util.Set<java.lang.String> pageUrlSet) throws java.io.IOException
java.io.IOException
private static void scanPageFile(java.nio.file.Path parentPath, java.nio.file.Path filePath, java.util.regex.Pattern[] patterns, java.util.Set<java.lang.String> pageUrlSet) throws java.io.IOException
java.io.IOException
private static void addPageUrl(java.lang.String url, java.util.Set<java.lang.String> pageUrlSet) throws java.io.IOException
java.io.IOException
private static void addUrlInPage(java.lang.String pageContent, java.util.regex.Pattern[] patterns, java.util.Set<java.lang.String> pageUrlSet) throws java.io.IOException
java.io.IOException
private static void getAuthorizedUrl(java.lang.String filePath, java.lang.String start, java.lang.String end, java.util.Set<java.lang.String> authorizedUrlSet) throws java.io.IOException
java.io.IOException
private static void dealLine(java.lang.String line, java.util.Set<java.lang.String> authorizedUrlSet)
private static void dealParameter(java.lang.String parameter, java.util.Set<java.lang.String> authorizedUrlSet)
private static void addUrl(java.lang.String url, java.util.Set<java.lang.String> authorizedUrlSet)