Tabnine Logo
S3V4AuthErrorRetryStrategy.buildRetryParams
Code IndexAdd Tabnine to your IDE (free)

How to use
buildRetryParams
method
in
com.amazonaws.services.s3.internal.S3V4AuthErrorRetryStrategy

Best Java code snippets using com.amazonaws.services.s3.internal.S3V4AuthErrorRetryStrategy.buildRetryParams (Showing top 4 results out of 315)

origin: aws/aws-sdk-java

/**
 * If the response doesn't have the x-amz-region header we have to resort to sending a request
 * to s3-external-1
 *
 * @return
 */
private AuthRetryParameters redirectToS3External() {
  AWSS3V4Signer v4Signer = buildSigV4Signer(Regions.US_EAST_1.getName());
  try {
    URI bucketEndpoint = new URI(
        String.format("https://%s.s3-external-1.amazonaws.com", endpointResolver.getBucketName()));
    return buildRetryParams(v4Signer, bucketEndpoint);
  } catch (URISyntaxException e) {
    throw new SdkClientException(
        "Failed to re-send the request to \"s3-external-1.amazonaws.com\". " + V4_REGION_WARNING, e);
  }
}
origin: aws/aws-sdk-java

private AuthRetryParameters redirectToRegionInHeader(Request<?> request, HttpResponse response) {
  final String region = getServingRegionHeader(response);
  AWSS3V4Signer v4Signer = buildSigV4Signer(region);
  endpointResolver.resolveRequestEndpoint(request, region);
  return buildRetryParams(v4Signer, request.getEndpoint());
}
origin: Nextdoor/bender

/**
 * If the response doesn't have the x-amz-region header we have to resort to sending a request
 * to s3-external-1
 *
 * @return
 */
private AuthRetryParameters redirectToS3External() {
  AWSS3V4Signer v4Signer = buildSigV4Signer(Regions.US_EAST_1.getName());
  try {
    URI bucketEndpoint = new URI(
        String.format("https://%s.s3-external-1.amazonaws.com", endpointResolver.getBucketName()));
    return buildRetryParams(v4Signer, bucketEndpoint);
  } catch (URISyntaxException e) {
    throw new SdkClientException(
        "Failed to re-send the request to \"s3-external-1.amazonaws.com\". " + V4_REGION_WARNING, e);
  }
}
origin: Nextdoor/bender

private AuthRetryParameters redirectToRegionInHeader(Request<?> request, HttpResponse response) {
  final String region = getServingRegionHeader(response);
  AWSS3V4Signer v4Signer = buildSigV4Signer(region);
  endpointResolver.resolveRequestEndpoint(request, region);
  return buildRetryParams(v4Signer, request.getEndpoint());
}
com.amazonaws.services.s3.internalS3V4AuthErrorRetryStrategybuildRetryParams

Popular methods of S3V4AuthErrorRetryStrategy

  • <init>
    Currently only used for testing
  • buildSigV4Signer
  • canUseVirtualAddressing
  • getServingRegionHeader
  • hasServingRegionHeader
  • redirectToRegionInHeader
  • redirectToS3External
    If the response doesn't have the x-amz-region header we have to resort to sending a request to s3-ex

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JList (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for WebStorm
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