public interface IController
| 限定符和类型 | 字段和说明 |
|---|---|
static Pattern |
idRegexp |
static Map<String,Action> |
urlMappingTree
URL 与 Action 之间的映射树。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Action |
findTreeByPath(Map<String,Action> tree,
Queue<String> queue,
String basePath) |
static Action |
findTreeByPath(Map<String,Action> tree,
Queue<String> path,
String basePath,
boolean createIfEmpty)
输入队列,查找节点。
|
static Action |
findTreeByPath(Map<String,Action> tree,
String path,
String basePath) |
static Action |
findTreeByPath(Map<String,Action> tree,
String path,
String basePath,
boolean createIfEmpty) |
static Action |
findTreeByPath(String path) |
static Queue<String> |
split2Queue2(String path)
Covernt "aa/bb/cc" to queen.
|
static final Pattern idRegexp
static Action findTreeByPath(Map<String,Action> tree, Queue<String> path, String basePath, boolean createIfEmpty)
tree - 保存在Map的一棵树path - 路径队列basePath - 起始路径,如为空应传空字符串createIfEmpty - 如果找不到该节点,是否自动为其创建节点?若为非 null 表示为写入模式,不单纯是查找。static Action findTreeByPath(Map<String,Action> tree, Queue<String> queue, String basePath)
tree - queue - basePath - static Action findTreeByPath(Map<String,Action> tree, String path, String basePath, boolean createIfEmpty)
Copyright © 2013–2021 AJAXJS. All rights reserved.