ResponseValidationPolicyBuilder Class
- java.
lang. Object - com.
azure. storage. common. policy. ResponseValidationPolicyBuilder
- com.
public class ResponseValidationPolicyBuilder
Builder for a policy to do validation of general response behavior.
Constructor Summary
Constructor | Description |
---|---|
ResponseValidationPolicyBuilder() |
Creates a new instance of ResponseValidationPolicyBuilder. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Response |
addOptionalEcho(HttpHeaderName headerName)
Fluently applies an optional validation to this policy where, if the response contains the given header, asserts its value is an echo of the value provided in the request. |
Response |
addOptionalEcho(String headerName)
Deprecated
Use addOptionalEcho(HttpHeaderName headerName) instead.
Fluently applies an optional validation to this policy where, if the response contains the given header, asserts its value is an echo of the value provided in the request. |
Http |
build()
Builds the policy described by this builder. |
Methods inherited from java.lang.Object
Constructor Details
ResponseValidationPolicyBuilder
public ResponseValidationPolicyBuilder()
Creates a new instance of ResponseValidationPolicyBuilder.
Method Details
addOptionalEcho
public ResponseValidationPolicyBuilder addOptionalEcho(HttpHeaderName headerName)
Fluently applies an optional validation to this policy where, if the response contains the given header, asserts its value is an echo of the value provided in the request.
Parameters:
Returns:
addOptionalEcho
@Deprecated
public ResponseValidationPolicyBuilder addOptionalEcho(String headerName)
Deprecated
Fluently applies an optional validation to this policy where, if the response contains the given header, asserts its value is an echo of the value provided in the request.
Parameters:
Returns:
build
public HttpPipelinePolicy build()
Builds the policy described by this builder.
Returns:
Applies to
Azure SDK for Java