你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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