congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
InternetDomainName.validatePart
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: google/guava

/**
 * Validation method used by {@code from} to ensure that the domain name is syntactically valid
 * according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: google/j2objc

/**
 * Validation method used by {@code from} to ensure that the domain name is syntactically valid
 * according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: wildfly/wildfly

/**
 * Validation method used by {@code from} to ensure that the domain name is syntactically valid
 * according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: com.diffplug.guava/guava-parse

/**
 * Validation method used by {@from} to ensure that the domain name is
 * syntactically valid according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
  final int lastIndex = parts.size() - 1;
  // Validate the last part specially, as it has different syntax rules.
  if (!validatePart(parts.get(lastIndex), true)) {
    return false;
  }
  for (int i = 0; i < lastIndex; i++) {
    String part = parts.get(i);
    if (!validatePart(part, false)) {
      return false;
    }
  }
  return true;
}
origin: com.google.guava/guava-jdk5

/**
 * Validation method used by {@from} to ensure that the domain name is
 * syntactically valid according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * Validation method used by {@from} to ensure that the domain name is
 * syntactically valid according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: org.sonatype.sisu/sisu-guava

/**
 * Validation method used by {@from} to ensure that the domain name is
 * syntactically valid according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Validation method used by {@from} to ensure that the domain name is
 * syntactically valid according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: Nextdoor/bender

/**
 * Validation method used by {@from} to ensure that the domain name is
 * syntactically valid according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Validation method used by {@code from} to ensure that the domain name is syntactically valid
 * according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * Validation method used by {@from} to ensure that the domain name is
 * syntactically valid according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

/**
 * Validation method used by {@code from} to ensure that the domain name is syntactically valid
 * according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: com.atlassian.bundles/guava

/**
 * Validation method used by {@from} to ensure that the domain name is
 * syntactically valid according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: at.bestsolution.efxclipse.eclipse/com.google.guava

/**
 * Validation method used by {@from} to ensure that the domain name is
 * syntactically valid according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
origin: org.hudsonci.lib.guava/guava

/**
 * Validation method used by {@from} to ensure that the domain name is
 * syntactically valid according to RFC 1035.
 *
 * @return Is the domain name syntactically valid?
 */
private static boolean validateSyntax(List<String> parts) {
 final int lastIndex = parts.size() - 1;
 // Validate the last part specially, as it has different syntax rules.
 if (!validatePart(parts.get(lastIndex), true)) {
  return false;
 }
 for (int i = 0; i < lastIndex; i++) {
  String part = parts.get(i);
  if (!validatePart(part, false)) {
   return false;
  }
 }
 return true;
}
com.google.common.netInternetDomainNamevalidatePart

Javadoc

Helper method for #validateSyntax(List). Validates that one part of a domain name is valid.

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
  • 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
  • name
    Returns the domain name, normalized to all lower case.
  • topPrivateDomain,
  • name,
  • findPublicSuffix,
  • matchesWildcardPublicSuffix,
  • parts,
  • child,
  • hasRegistrySuffix,
  • isTopDomainUnderRegistrySuffix,
  • isUnderRegistrySuffix

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • startActivity (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JOptionPane (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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