public abstract class FilterHandler<T extends Context> extends PathHandler<T>
Filter| 限定符和类型 | 字段和说明 |
|---|---|
int |
order
同路由下的
Filter.order() 的执行顺序 |
path, pieces, protocol| 构造器和说明 |
|---|
FilterHandler(String path)
|
FilterHandler(String protocol,
String path)
|
FilterHandler(String protocol,
String path,
int order)
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(PathHandler<T> other) |
protected int |
pathMatch(List<String> pieces,
Map<String,String> pathToken)
路径匹配
路径变量 {name}
|
String |
toString() |
doCompare, matchpublic final int order
Filter.order() 的执行顺序public FilterHandler(String path)
path - PathHandler.pathpublic FilterHandler(String protocol, String path)
protocol - PathHandler.protocolpath - PathHandler.pathpublic FilterHandler(String protocol, String path, int order)
protocol - PathHandler.protocolpath - PathHandler.pathorder - orderpublic int compareTo(PathHandler<T> other)
compareTo 在接口中 Comparable<PathHandler<T extends Context>>compareTo 在类中 PathHandler<T extends Context>protected int pathMatch(List<String> pieces, Map<String,String> pathToken)
PathHandlerpathMatch 在类中 PathHandler<T extends Context>public String toString()
toString 在类中 PathHandler<T extends Context>Copyright © 2024. All rights reserved.