Enum Class的使用
org.apache.pulsar.common.tls.DomainType
使用DomainType的程序包
-
org.apache.pulsar.common.tls中DomainType的使用
修饰符和类型方法说明static DomainTypeReturns the enum constant of this class with the specified name.static DomainType[]DomainType.values()Returns an array containing the constants of this enum class, in the order they are declared.参数类型为DomainType的org.apache.pulsar.common.tls中的方法修饰符和类型方法说明PublicSuffixMatcher.getDomainRoot(String domain, DomainType expectedType) Returns registrable part of the domain for the given domain name ornullif given domain represents a public suffix.booleanPublicSuffixMatcher.matches(String domain, DomainType expectedType) Tests whether the given domain matches any of entry from the public suffix list.参数类型为DomainType的org.apache.pulsar.common.tls中的构造器限定符构造器说明PublicSuffixList(DomainType type, List<String> rules, List<String> exceptions) PublicSuffixMatcher(DomainType domainType, Collection<String> rules, Collection<String> exceptions)