Tabnine Logo
BucketNameUtils.isDNSBucketName
Code IndexAdd Tabnine to your IDE (free)

How to use
isDNSBucketName
method
in
com.amazonaws.services.s3.internal.BucketNameUtils

Best Java code snippets using com.amazonaws.services.s3.internal.BucketNameUtils.isDNSBucketName (Showing top 9 results out of 315)

origin: aws/aws-sdk-java

private boolean shouldUseVirtualAddressing(final URI endpoint) {
  return !isPathStyleAccess && BucketNameUtils.isDNSBucketName(bucketName)
      && !isValidIpV4Address(endpoint.getHost());
}
origin: aws/aws-sdk-java

private boolean canUseVirtualAddressing() {
  return BucketNameUtils.isDNSBucketName(endpointResolver.getBucketName());
}
origin: aws/aws-sdk-java

private static String convertRegionToString(Region region, String bucketName) {
  String regionAsString;
  if (region == null) {
    if (BucketNameUtils.isDNSBucketName(bucketName)) {
      regionAsString = Region.US_Standard.getFirstRegionId();
    } else {
      throw new IllegalArgumentException("Region must be specified for bucket that cannot be addressed using virtual host style");
    }
  } else {
    regionAsString = region.getFirstRegionId();
  }
  return regionAsString;
}
origin: aws-amplify/aws-sdk-android

private boolean shouldUseVirtualAddressing(final URI endpoint, final String bucketName) {
  return !clientOptions.isPathStyleAccess() && BucketNameUtils.isDNSBucketName(bucketName)
      && !isValidIpV4Address(endpoint.getHost());
}
origin: aws-amplify/aws-sdk-android

/**
 * Constructs a new {@link ID} with all the required parameters.
 *
 * @param bucket The name of the bucket containing the desired object.
 * @param key The key in the specified bucket under which the object is
 *            stored.
 */
ID(Region region, String bucket, String key) {
  if (region == null) {
    if (BucketNameUtils.isDNSBucketName(bucket)) {
      this.regionId = Region.US_Standard.getFirstRegionId();
    } else {
      throw new IllegalArgumentException(
          "Region must be specified for bucket that cannot be addressed using virtual host style");
    }
  } else {
    this.regionId = region.getFirstRegionId();
  }
  this.bucket = bucket;
  this.key = key;
}
origin: Nextdoor/bender

private boolean shouldUseVirtualAddressing(final URI endpoint) {
  return !isPathStyleAccess && BucketNameUtils.isDNSBucketName(bucketName)
      && !isValidIpV4Address(endpoint.getHost());
}
origin: Nextdoor/bender

private boolean canUseVirtualAddressing() {
  return BucketNameUtils.isDNSBucketName(endpointResolver.getBucketName());
}
origin: com.amazonaws/aws-java-sdk-dynamodb

private static String convertRegionToString(Region region, String bucketName) {
  String regionAsString;
  if (region == null) {
    if (BucketNameUtils.isDNSBucketName(bucketName)) {
      regionAsString = Region.US_Standard.getFirstRegionId();
    } else {
      throw new IllegalArgumentException("Region must be specified for bucket that cannot be addressed using virtual host style");
    }
  } else {
    regionAsString = region.getFirstRegionId();
  }
  return regionAsString;
}
origin: com.amazonaws/aws-android-sdk-s3

private boolean shouldUseVirtualAddressing(final URI endpoint, final String bucketName) {
  return !clientOptions.isPathStyleAccess() && BucketNameUtils.isDNSBucketName(bucketName)
      && !isValidIpV4Address(endpoint.getHost());
}
com.amazonaws.services.s3.internalBucketNameUtilsisDNSBucketName

Javadoc

Convience method that allows the DNS rules to be altered for different SDKs.

Popular methods of BucketNameUtils

  • isValidV2BucketName
    Validate whether the given input is a valid bucket name. If throwOnError is true, throw an IllegalAr
  • validateBucketName
    Validates that the specified bucket name is valid for Amazon S3 V2 naming (i.e. DNS addressable in v
  • exception
    If 'exception' is true, throw an IllegalArgumentException with the given message. Otherwise, silentl

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • JFrame (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best plugins for Eclipse
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