MetadataValidationPolicy Class
- java.
lang. Object - com.
azure. storage. common. policy. MetadataValidationPolicy
- com.
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<Http |
process(HttpPipelineCallContext context, HttpPipelineNextPolicy next) |
Http |
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
Parameters:
processSync
public HttpResponse processSync(HttpPipelineCallContext context, HttpPipelineNextSyncPolicy next)
Parameters:
Applies to
Azure SDK for Java