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

RecordNetworkCallPolicy Class

  • java.lang.Object
    • com.azure.core.test.policy.RecordNetworkCallPolicy

Implements

public class RecordNetworkCallPolicy
implements HttpPipelinePolicy

HTTP Pipeline policy that keeps track of each HTTP request and response that flows through the pipeline. Data is recorded into RecordedData.

Constructor Summary

Constructor Description
RecordNetworkCallPolicy(RecordedData recordedData)

Creates a policy that records network calls into recordedData.

RecordNetworkCallPolicy(RecordedData recordedData, List<Function<String,String>> redactors)

Creates a policy that records network calls into recordedData by redacting sensitive information by applying the provided redactor functions.

Method Summary

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

Methods inherited from java.lang.Object

Constructor Details

RecordNetworkCallPolicy

public RecordNetworkCallPolicy(RecordedData recordedData)

Creates a policy that records network calls into recordedData.

Parameters:

recordedData - The record to persist network calls into.

RecordNetworkCallPolicy

public RecordNetworkCallPolicy(RecordedData recordedData, List<Function<String,String>> redactors)

Creates a policy that records network calls into recordedData by redacting sensitive information by applying the provided redactor functions.

Parameters:

recordedData - The record to persist network calls into.
redactors - The custom redactor functions to apply to redact sensitive information from recorded data.

Method Details

process

public Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)

Parameters:

context
next

Applies to