|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alipay.hessian.NameBlackListFilter
public class NameBlackListFilter
名字黑名单过滤器
| Field Summary | |
|---|---|
protected List<String> |
blackPrefixList
黑名单 包名前缀 |
protected ConcurrentMap<String,Boolean> |
resultOfInBlackList
类名是否在黑名单中结果缓存。 |
| Constructor Summary | |
|---|---|
NameBlackListFilter(List<String> blackPrefixList)
指定黑名单前缀 |
|
NameBlackListFilter(List<String> blackPrefixList,
int maxCacheSize)
指定黑名单前缀和缓存大小 |
|
| Method Summary | |
|---|---|
protected void |
buildCache(int maxCacheSize)
初始化缓存 |
int |
order()
排序,从小到大排序,越小越前面 |
String |
resolve(String className)
决定类名,例如进行过滤,转换,等等。 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<String> blackPrefixList
protected ConcurrentMap<String,Boolean> resultOfInBlackList
| Constructor Detail |
|---|
public NameBlackListFilter(List<String> blackPrefixList)
blackPrefixList - 黑名单前缀
public NameBlackListFilter(List<String> blackPrefixList,
int maxCacheSize)
blackPrefixList - 黑名单前缀maxCacheSize - 最大缓存大小| Method Detail |
|---|
protected void buildCache(int maxCacheSize)
maxCacheSize - 最大缓存public int order()
ClassNameFilter
order in interface ClassNameFilter
public String resolve(String className)
throws IOException
ClassNameFilter
resolve in interface ClassNameFilterclassName - 类名
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||