Compartir vía


MetadataValidationPolicy Class

  • java.lang.Object
    • com.azure.storage.common.policy.MetadataValidationPolicy

Implements

public class MetadataValidationPolicy
implements HttpPipelinePolicy

This is a request policy in an HttpPipeline to validate that metadata does not contain leading or trailing whitespace characters.

This is done as the service trims whitespace for the string to sign, but the client does not, resulting in an auth failure.

Constructor Summary

Constructor Description
MetadataValidationPolicy()

Creates a new instance of MetadataValidationPolicy.

Method Summary

Modifier and Type Method and Description
Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)
HttpResponse processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next)

Methods inherited from java.lang.Object

Constructor Details

MetadataValidationPolicy

public MetadataValidationPolicy()

Creates a new instance of MetadataValidationPolicy.

Method Details

process

public Mono process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)

Parameters:

context
next

processSync

public HttpResponse processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next)

Parameters:

context
next

Applies to