| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http.psl |
Public Suffix List support classes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
DomainType |
PublicSuffixList.getType() |
static DomainType |
DomainType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static DomainType[] |
DomainType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
PublicSuffixMatcher.getDomainRoot(String domain,
DomainType expectedType)
Returns registrable part of the domain for the given domain name or
null
if given domain represents a public suffix. |
boolean |
PublicSuffixMatcher.matches(String domain,
DomainType expectedType)
Tests whether the given domain matches any of entry from the public suffix list.
|
| 构造器和说明 |
|---|
PublicSuffixList(DomainType type,
List<String> rules,
List<String> exceptions) |
PublicSuffixMatcher(DomainType domainType,
Collection<String> rules,
Collection<String> exceptions) |
Copyright © 2023. All rights reserved.