Class ScrubEtagPolicy

java.lang.Object
com.azure.storage.common.policy.ScrubEtagPolicy
All Implemented Interfaces:
com.azure.core.http.policy.HttpPipelinePolicy

public class ScrubEtagPolicy extends Object implements com.azure.core.http.policy.HttpPipelinePolicy
Wraps any potential error responses from the service and applies post-processing of the response's eTag header to standardize the value.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Mono<com.azure.core.http.HttpResponse>
    process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next)
    Wraps any potential error responses from the service and applies post-processing of the response's eTag header to standardize the value.
    com.azure.core.http.HttpResponse
    processSync(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextSyncPolicy next)
    Wraps any potential error responses from the service and applies post-processing of the response's eTag header to standardize the value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.core.http.policy.HttpPipelinePolicy

    getPipelinePosition
  • Constructor Details

    • ScrubEtagPolicy

      public ScrubEtagPolicy()
  • Method Details

    • processSync

      public com.azure.core.http.HttpResponse processSync(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextSyncPolicy next)
      Wraps any potential error responses from the service and applies post-processing of the response's eTag header to standardize the value.
      Specified by:
      processSync in interface com.azure.core.http.policy.HttpPipelinePolicy
      Parameters:
      context - The request context.
      next - The next policy to invoke.
      Returns:
      an updated response with post-processing steps applied.
    • process

      public Mono<com.azure.core.http.HttpResponse> process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next)
      Wraps any potential error responses from the service and applies post-processing of the response's eTag header to standardize the value.
      Specified by:
      process in interface com.azure.core.http.policy.HttpPipelinePolicy
      Parameters:
      context - The request context.
      next - The next policy to invoke.
      Returns:
      an updated response with post-processing steps applied.