public static final class UrlFetchTransport.Builder
Constructors
Builder()
public Builder()
Methods
build()
public UrlFetchTransport build()
Returns a new instance of UrlFetchTransport based on the options.
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.
Type | Description |
UrlFetchTransport.Builder |
getDoNotValidateCertificate()
public boolean getDoNotValidateCertificate()
Returns whether to use FetchOptions#validateCertificate().
Type | Description |
boolean |
getValidateCertificate()
public boolean getValidateCertificate()
Returns whether to use FetchOptions#validateCertificate().
Type | Description |
boolean |
validateCertificate()
public UrlFetchTransport.Builder validateCertificate()
Sets whether to use FetchOptions#validateCertificate() (false
by default).
Type | Description |
UrlFetchTransport.Builder |