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

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

Best Java code snippets using com.amazonaws.services.s3.internal.S3V4AuthErrorRetryStrategy.buildSigV4Signer (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.internalS3V4AuthErrorRetryStrategybuildSigV4Signer

Popular methods of S3V4AuthErrorRetryStrategy

  • <init>
    Currently only used for testing
  • buildRetryParams
  • 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

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • CodeWhisperer alternatives
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