RecordNetworkCallPolicy Class
- java.
lang. Object - com.
azure. core. test. policy. RecordNetworkCallPolicy
- com.
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 |
RecordNetworkCallPolicy(RecordedData recordedData, List<Function<String,String>> redactors) |
Creates a policy that records network calls into |
Method Summary
Modifier and Type | Method and Description |
---|---|
Mono<Http |
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:
RecordNetworkCallPolicy
public RecordNetworkCallPolicy(RecordedData recordedData, List
Creates a policy that records network calls into recordedData
by redacting sensitive information by applying the provided redactor functions.
Parameters:
Method Details
process
public Mono
Parameters:
Applies to
Azure SDK for Java