Class UrlFetchTransport.Builder (1.41.8)

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
TypeDescription
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
TypeDescription
UrlFetchTransport.Builder

getDoNotValidateCertificate()

public boolean getDoNotValidateCertificate()

Returns whether to use FetchOptions#validateCertificate().

Returns
TypeDescription
boolean

getValidateCertificate()

public boolean getValidateCertificate()

Returns whether to use FetchOptions#validateCertificate().

Returns
TypeDescription
boolean

validateCertificate()

public UrlFetchTransport.Builder validateCertificate()

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

Returns
TypeDescription
UrlFetchTransport.Builder