| 软件包 | 描述 |
|---|---|
| org.apache.http.conn.util |
连接实用程序类。
|
| Modifier and Type | Method and Description |
|---|---|
DomainType |
PublicSuffixList.getType() |
static DomainType |
DomainType.valueOf(String name)
以指定的名称返回此类型的枚举常量。
|
static DomainType[] |
DomainType.values()
按照它们声明的顺序返回一个包含此枚举类型常量的数组。
|
| Modifier and Type | Method and Description |
|---|---|
String |
PublicSuffixMatcher.getDomainRoot(String domain, DomainType expectedType)
如果给定域代表公共后缀,则返回给定域名的域的可注册部分,或
null 。
|
boolean |
PublicSuffixMatcher.matches(String domain, DomainType expectedType)
测试给定的域是否匹配公共后缀列表中的任何条目。
|
| Constructor and Description |
|---|
PublicSuffixList(DomainType type, List<String> rules, List<String> exceptions) |
PublicSuffixMatcher(DomainType domainType, Collection<String> rules, Collection<String> exceptions) |
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.