congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
InternetDomainName.matchesWildcardSuffixType
Code IndexAdd Tabnine to your IDE (free)

How to use
matchesWildcardSuffixType
method
in
com.google.common.net.InternetDomainName

Best Java code snippets using com.google.common.net.InternetDomainName.matchesWildcardSuffixType (Showing top 5 results out of 315)

origin: google/guava

/**
 * Returns the index of the leftmost part of the suffix, or -1 if not found. Note that the value
 * defined as a suffix may not produce {@code true} results from {@link #isPublicSuffix()} or
 * {@link #isRegistrySuffix()} if the domain ends with an excluded domain pattern such as {@code
 * "nhs.uk"}.
 *
 * <p>If a {@code desiredType} is specified, this method only finds suffixes of the given type.
 * Otherwise, it finds the first suffix of any type.
 */
private int findSuffixOfType(Optional<PublicSuffixType> desiredType) {
 final int partsSize = parts.size();
 for (int i = 0; i < partsSize; i++) {
  String ancestorName = DOT_JOINER.join(parts.subList(i, partsSize));
  if (matchesType(
    desiredType, Optional.fromNullable(PublicSuffixPatterns.EXACT.get(ancestorName)))) {
   return i;
  }
  // Excluded domains (e.g. !nhs.uk) use the next highest
  // domain as the effective public suffix (e.g. uk).
  if (PublicSuffixPatterns.EXCLUDED.containsKey(ancestorName)) {
   return i + 1;
  }
  if (matchesWildcardSuffixType(desiredType, ancestorName)) {
   return i;
  }
 }
 return NO_SUFFIX_FOUND;
}
origin: google/j2objc

/**
 * Returns the index of the leftmost part of the suffix, or -1 if not found. Note that the value
 * defined as a suffix may not produce {@code true} results from {@link #isPublicSuffix()} or
 * {@link #isRegistrySuffix()} if the domain ends with an excluded domain pattern such as {@code
 * "nhs.uk"}.
 *
 * <p>If a {@code desiredType} is specified, this method only finds suffixes of the given type.
 * Otherwise, it finds the first suffix of any type.
 */
private int findSuffixOfType(Optional<PublicSuffixType> desiredType) {
 final int partsSize = parts.size();
 for (int i = 0; i < partsSize; i++) {
  String ancestorName = DOT_JOINER.join(parts.subList(i, partsSize));
  if (matchesType(
    desiredType, Optional.fromNullable(PublicSuffixPatterns.EXACT.get(ancestorName)))) {
   return i;
  }
  // Excluded domains (e.g. !nhs.uk) use the next highest
  // domain as the effective public suffix (e.g. uk).
  if (PublicSuffixPatterns.EXCLUDED.containsKey(ancestorName)) {
   return i + 1;
  }
  if (matchesWildcardSuffixType(desiredType, ancestorName)) {
   return i;
  }
 }
 return NO_SUFFIX_FOUND;
}
origin: wildfly/wildfly

/**
 * Returns the index of the leftmost part of the suffix, or -1 if not found. Note that the value
 * defined as a suffix may not produce {@code true} results from {@link #isPublicSuffix()} or
 * {@link #isRegistrySuffix()} if the domain ends with an excluded domain pattern such as {@code
 * "nhs.uk"}.
 *
 * <p>If a {@code desiredType} is specified, this method only finds suffixes of the given type.
 * Otherwise, it finds the first suffix of any type.
 */
private int findSuffixOfType(Optional<PublicSuffixType> desiredType) {
 final int partsSize = parts.size();
 for (int i = 0; i < partsSize; i++) {
  String ancestorName = DOT_JOINER.join(parts.subList(i, partsSize));
  if (matchesType(
    desiredType, Optional.fromNullable(PublicSuffixPatterns.EXACT.get(ancestorName)))) {
   return i;
  }
  // Excluded domains (e.g. !nhs.uk) use the next highest
  // domain as the effective public suffix (e.g. uk).
  if (PublicSuffixPatterns.EXCLUDED.containsKey(ancestorName)) {
   return i + 1;
  }
  if (matchesWildcardSuffixType(desiredType, ancestorName)) {
   return i;
  }
 }
 return NO_SUFFIX_FOUND;
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Returns the index of the leftmost part of the suffix, or -1 if not found. Note that the value
 * defined as a suffix may not produce {@code true} results from {@link #isPublicSuffix()} or
 * {@link #isRegistrySuffix()} if the domain ends with an excluded domain pattern such as {@code
 * "nhs.uk"}.
 *
 * <p>If a {@code desiredType} is specified, this method only finds suffixes of the given type.
 * Otherwise, it finds the first suffix of any type.
 */
private int findSuffixOfType(Optional<PublicSuffixType> desiredType) {
 final int partsSize = parts.size();
 for (int i = 0; i < partsSize; i++) {
  String ancestorName = DOT_JOINER.join(parts.subList(i, partsSize));
  if (matchesType(
    desiredType, Optional.fromNullable(PublicSuffixPatterns.EXACT.get(ancestorName)))) {
   return i;
  }
  // Excluded domains (e.g. !nhs.uk) use the next highest
  // domain as the effective public suffix (e.g. uk).
  if (PublicSuffixPatterns.EXCLUDED.containsKey(ancestorName)) {
   return i + 1;
  }
  if (matchesWildcardSuffixType(desiredType, ancestorName)) {
   return i;
  }
 }
 return NO_SUFFIX_FOUND;
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

/**
 * Returns the index of the leftmost part of the suffix, or -1 if not found. Note that the value
 * defined as a suffix may not produce {@code true} results from {@link #isPublicSuffix()} or
 * {@link #isRegistrySuffix()} if the domain ends with an excluded domain pattern such as {@code
 * "nhs.uk"}.
 *
 * <p>If a {@code desiredType} is specified, this method only finds suffixes of the given type.
 * Otherwise, it finds the first suffix of any type.
 */
private int findSuffixOfType(Optional<PublicSuffixType> desiredType) {
 final int partsSize = parts.size();
 for (int i = 0; i < partsSize; i++) {
  String ancestorName = DOT_JOINER.join(parts.subList(i, partsSize));
  if (matchesType(
    desiredType, Optional.fromNullable(PublicSuffixPatterns.EXACT.get(ancestorName)))) {
   return i;
  }
  // Excluded domains (e.g. !nhs.uk) use the next highest
  // domain as the effective public suffix (e.g. uk).
  if (PublicSuffixPatterns.EXCLUDED.containsKey(ancestorName)) {
   return i + 1;
  }
  if (matchesWildcardSuffixType(desiredType, ancestorName)) {
   return i;
  }
 }
 return NO_SUFFIX_FOUND;
}
com.google.common.netInternetDomainNamematchesWildcardSuffixType

Javadoc

Does the domain name match one of the "wildcard" patterns (e.g. "*.ar")? If a desiredType is specified, the wildcard pattern must also match that type.

Popular methods of InternetDomainName

  • from
    Returns an instance of InternetDomainName after lenient validation. Specifically, validation against
  • toString
    Returns the domain name, normalized to all lower case.
  • hasPublicSuffix
    Indicates whether this domain name ends in a #isPublicSuffix(), including if it is a public suffix i
  • isValid
    Indicates whether the argument is a syntactically valid domain name using lenient validation. Specif
  • isUnderPublicSuffix
    Indicates whether this domain name ends in a #isPublicSuffix(), while not being a public suffix itse
  • isTopPrivateDomain
    Indicates whether this domain name is composed of exactly one subdomain component followed by a #isP
  • hasParent
    Indicates whether this domain is composed of two or more parts.
  • <init>
    Private constructor used to implement #ancestor(int). Argument parts are assumed to be valid, as the
  • ancestor
    Returns the ancestor of the current domain at the given number of levels "higher" (rightward) in the
  • validatePart
    Helper method for #validateSyntax(List). Validates that one part of a domain name is valid.
  • validateSyntax
    Validation method used by to ensure that the domain name is syntactically valid according to RFC 103
  • topPrivateDomain
    Returns the portion of this domain name that is one level beneath the public suffix. For example, fo
  • validateSyntax,
  • topPrivateDomain,
  • name,
  • findPublicSuffix,
  • matchesWildcardPublicSuffix,
  • parts,
  • child,
  • hasRegistrySuffix,
  • isTopDomainUnderRegistrySuffix,
  • isUnderRegistrySuffix

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JList (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now