- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for hasPublicSuffix (0.06 seconds)
-
android/guava/src/com/google/common/net/InternetDomainName.java
* @since 6.0 */ public boolean hasPublicSuffix() { return publicSuffixIndex() != NO_SUFFIX_FOUND; } /** * Returns the {@linkplain #isPublicSuffix() public suffix} portion of the domain name, or {@code * null} if no public suffix is present. * * @since 6.0 */ public @Nullable InternetDomainName publicSuffix() { return hasPublicSuffix() ? ancestor(publicSuffixIndex()) : null; }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 27.9K bytes - Click Count (0) -
android/guava/src/com/google/common/net/HostSpecifier.java
// TODO(user): different versions of this for different factories? InternetDomainName domain = InternetDomainName.from(host); if (domain.hasPublicSuffix()) { return new HostSpecifier(domain.toString()); } throw new IllegalArgumentException( "Domain name does not have a recognized public suffix: " + host); } /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6K bytes - Click Count (0)