public class StaticMappings
extends java.lang.Object
构造器和说明 |
---|
StaticMappings() |
限定符和类型 | 方法和说明 |
---|---|
static void |
add(java.lang.String pathPrefix,
StaticRepository repository)
添加映射关系
|
protected static void |
addDo(java.lang.String pathPrefix,
StaticRepository repository,
boolean repositoryIncPrefix) |
static int |
count()
映射数量
|
static java.net.URL |
find(java.lang.String path)
查询静态资源
|
static void |
remove(StaticRepository repository)
移除仓库
|
public static int count()
public static void add(java.lang.String pathPrefix, StaticRepository repository)
pathPrefix
- 路径前缀repository
- 资源仓库protected static void addDo(java.lang.String pathPrefix, StaticRepository repository, boolean repositoryIncPrefix)
public static void remove(StaticRepository repository)
public static java.net.URL find(java.lang.String path) throws java.lang.Exception
java.lang.Exception