azure-docs-sdk-java/docs-ref-autogen/com.azure.core.test.http.Pl...

57 строки
4.9 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.test.http.PlaybackClient"
fullName: "com.azure.core.test.http.PlaybackClient"
name: "PlaybackClient"
nameWithType: "PlaybackClient"
summary: "HTTP client that plays back <xref uid=\"com.azure.core.test.models.NetworkCallRecord\" data-throw-if-not-resolved=\"false\" data-raw-source=\"NetworkCallRecords\"></xref>."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **PlaybackClient**</br> implements <xref href=\"com.azure.core.http.HttpClient?alt=com.azure.core.http.HttpClient&text=HttpClient\" data-throw-if-not-resolved=\"False\" />"
constructors:
- uid: "com.azure.core.test.http.PlaybackClient.PlaybackClient(com.azure.core.test.models.RecordedData,java.util.Map<java.lang.String,java.lang.String>)"
fullName: "com.azure.core.test.http.PlaybackClient.PlaybackClient(RecordedData recordedData, Map<String,String> textReplacementRules)"
name: "PlaybackClient(RecordedData recordedData, Map<String,String> textReplacementRules)"
nameWithType: "PlaybackClient.PlaybackClient(RecordedData recordedData, Map<String,String> textReplacementRules)"
summary: "Creates a Playback<wbr>Client that replays network calls from `recordedData` and replaces <xref uid=\"com.azure.core.test.models.NetworkCallRecord.getResponse()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"response text\"></xref> for any rules specified in `textReplacementRules`."
parameters:
- description: "The data to playback."
name: "recordedData"
type: "<xref href=\"com.azure.core.test.models.RecordedData?alt=com.azure.core.test.models.RecordedData&text=RecordedData\" data-throw-if-not-resolved=\"False\" />"
- description: "A set of rules to replace text in network call responses."
name: "textReplacementRules"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/Map.html\">Map</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>,<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>&gt;"
syntax: "public PlaybackClient(RecordedData recordedData, Map<String,String> textReplacementRules)"
desc: "Creates a PlaybackClient that replays network calls from `recordedData` and replaces <xref uid=\"com.azure.core.test.models.NetworkCallRecord.getResponse()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"response text\"></xref> for any rules specified in `textReplacementRules`."
methods:
- uid: "com.azure.core.test.http.PlaybackClient.send(com.azure.core.http.HttpRequest)"
fullName: "com.azure.core.test.http.PlaybackClient.send(HttpRequest request)"
name: "send(HttpRequest request)"
nameWithType: "PlaybackClient.send(HttpRequest request)"
parameters:
- name: "request"
type: "<xref href=\"com.azure.core.http.HttpRequest?alt=com.azure.core.http.HttpRequest&text=HttpRequest\" data-throw-if-not-resolved=\"False\" />"
syntax: "public Mono<HttpResponse> send(HttpRequest request)"
returns:
type: "<a href=\"https://projectreactor.io/docs/core/release/api/reactor/core/publisher/Mono.html\">Mono</a>&lt;<xref href=\"com.azure.core.http.HttpResponse?alt=com.azure.core.http.HttpResponse&text=HttpResponse\" data-throw-if-not-resolved=\"False\" />&gt;"
type: "class"
desc: "HTTP client that plays back <xref uid=\"com.azure.core.test.models.NetworkCallRecord\" data-throw-if-not-resolved=\"false\" data-raw-source=\"NetworkCallRecords\"></xref>."
implements:
- "<xref href=\"com.azure.core.http.HttpClient?alt=com.azure.core.http.HttpClient&text=HttpClient\" data-throw-if-not-resolved=\"False\" />"
metadata: {}
package: "com.azure.core.test.http"
artifact: com.azure:azure-core-test:1.26.2