ForwardProxy Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.ForwardProxy

Implements

public final class ForwardProxy
implements JsonSerializable<ForwardProxy>

The configuration settings of a forward proxy used to make the requests.

Constructor Summary

Constructor Description
ForwardProxy()

Creates an instance of ForwardProxy class.

Method Summary

Modifier and Type Method and Description
ForwardProxyConvention convention()

Get the convention property: The convention used to determine the url of the request made.

String customHostHeaderName()

Get the customHostHeaderName property: The name of the header containing the host of the request.

String customProtoHeaderName()

Get the customProtoHeaderName property: The name of the header containing the scheme of the request.

static ForwardProxy fromJson(JsonReader jsonReader)

Reads an instance of ForwardProxy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ForwardProxy withConvention(ForwardProxyConvention convention)

Set the convention property: The convention used to determine the url of the request made.

ForwardProxy withCustomHostHeaderName(String customHostHeaderName)

Set the customHostHeaderName property: The name of the header containing the host of the request.

ForwardProxy withCustomProtoHeaderName(String customProtoHeaderName)

Set the customProtoHeaderName property: The name of the header containing the scheme of the request.

Methods inherited from java.lang.Object

Constructor Details

ForwardProxy

public ForwardProxy()

Creates an instance of ForwardProxy class.

Method Details

convention

public ForwardProxyConvention convention()

Get the convention property: The convention used to determine the url of the request made.

Returns:

the convention value.

customHostHeaderName

public String customHostHeaderName()

Get the customHostHeaderName property: The name of the header containing the host of the request.

Returns:

the customHostHeaderName value.

customProtoHeaderName

public String customProtoHeaderName()

Get the customProtoHeaderName property: The name of the header containing the scheme of the request.

Returns:

the customProtoHeaderName value.

fromJson

public static ForwardProxy fromJson(JsonReader jsonReader)

Reads an instance of ForwardProxy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ForwardProxy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ForwardProxy.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withConvention

public ForwardProxy withConvention(ForwardProxyConvention convention)

Set the convention property: The convention used to determine the url of the request made.

Parameters:

convention - the convention value to set.

Returns:

the ForwardProxy object itself.

withCustomHostHeaderName

public ForwardProxy withCustomHostHeaderName(String customHostHeaderName)

Set the customHostHeaderName property: The name of the header containing the host of the request.

Parameters:

customHostHeaderName - the customHostHeaderName value to set.

Returns:

the ForwardProxy object itself.

withCustomProtoHeaderName

public ForwardProxy withCustomProtoHeaderName(String customProtoHeaderName)

Set the customProtoHeaderName property: The name of the header containing the scheme of the request.

Parameters:

customProtoHeaderName - the customProtoHeaderName value to set.

Returns:

the ForwardProxy object itself.

Applies to