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> 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 process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)

Parameters:

context
next

Applies to