Class UrlFetchTransport.Builder (1.44.2)

public static final class UrlFetchTransport.Builder

Builder for UrlFetchTransport.

Implementation is not thread-safe.

Inheritance

java.lang.Object > UrlFetchTransport.Builder

Constructors

Builder()

public Builder()

Methods

build()

public UrlFetchTransport build()

Returns a new instance of UrlFetchTransport based on the options.

Returns
Type Description
UrlFetchTransport

doNotValidateCertificate()

public UrlFetchTransport.Builder doNotValidateCertificate()

Sets whether to use FetchOptions#doNotValidateCertificate() (false by default).

Be careful! Disabling certificate validation is dangerous and should be done in testing environments only.

Returns
Type Description
UrlFetchTransport.Builder

getDoNotValidateCertificate()

public boolean getDoNotValidateCertificate()

Returns whether to use FetchOptions#validateCertificate().

Returns
Type Description
boolean

getValidateCertificate()

public boolean getValidateCertificate()

Returns whether to use FetchOptions#validateCertificate().

Returns
Type Description
boolean

validateCertificate()

public UrlFetchTransport.Builder validateCertificate()

Sets whether to use FetchOptions#validateCertificate() (false by default).

Returns
Type Description
UrlFetchTransport.Builder