Share via


TestProxyRecordingOptions Class

  • java.lang.Object
    • com.azure.core.test.models.TestProxyRecordingOptions

Implements

public class TestProxyRecordingOptions
implements JsonSerializable<TestProxyRecordingOptions>

Keeps track of transport layer recording options to send to proxy.

Constructor Summary

Constructor Description
TestProxyRecordingOptions()

Method Summary

Modifier and Type Method and Description
static TestProxyRecordingOptions fromJson(JsonReader jsonReader)

Deserializes an instance of TestProxyRecordingOptions from the input JSON.

ProxyTransport getTransportOptions()

Get test proxy transport options for recording.

boolean isAutoRedirect()

Get if auto redirecting is allowed.

TestProxyRecordingOptions setAutoRedirect(boolean autoRedirect)

Set the boolean value indicating if auto redirect is allowed.

TestProxyRecordingOptions setTransportOptions(TestProxyRecordingOptions.ProxyTransport proxyTransportOptions)

Set test proxy transport options for recording.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

TestProxyRecordingOptions

public TestProxyRecordingOptions()

Method Details

fromJson

public static TestProxyRecordingOptions fromJson(JsonReader jsonReader)

Deserializes an instance of TestProxyRecordingOptions from the input JSON.

Parameters:

jsonReader - The JSON reader to deserialize the data from.

Returns:

An instance of TestProxyRecordingOptions deserialized from the JSON.

Throws:

IOException

- If the JSON reader encounters an error while reading the JSON.

getTransportOptions

public TestProxyRecordingOptions.ProxyTransport getTransportOptions()

Get test proxy transport options for recording.

Returns:

the ProxyTransport options.

isAutoRedirect

public boolean isAutoRedirect()

Get if auto redirecting is allowed. Default value is set to true.

Returns:

the boolean value indicating if auto redirect is allowed.

setAutoRedirect

public TestProxyRecordingOptions setAutoRedirect(boolean autoRedirect)

Set the boolean value indicating if auto redirect is allowed.

Parameters:

autoRedirect - the boolean value indicating if auto redirect is allowed.

Returns:

setTransportOptions

public TestProxyRecordingOptions setTransportOptions(TestProxyRecordingOptions.ProxyTransport proxyTransportOptions)

Set test proxy transport options for recording.

Parameters:

proxyTransportOptions - the test proxy transport options for recording

Returns:

the ProxyTransport options.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to