public static final class UrlFetchTransport.Builder extends Object
UrlFetchTransport
.
Implementation is not thread-safe.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UrlFetchTransport |
build()
Returns a new instance of
UrlFetchTransport based on the options. |
UrlFetchTransport.Builder |
doNotValidateCertificate()
Sets whether to use
FetchOptions.doNotValidateCertificate() (false by
default). |
boolean |
getDoNotValidateCertificate()
Returns whether to use
FetchOptions.validateCertificate() . |
boolean |
getValidateCertificate()
Returns whether to use
FetchOptions.validateCertificate() . |
UrlFetchTransport.Builder |
validateCertificate()
Sets whether to use
FetchOptions.validateCertificate() (false by default). |
public UrlFetchTransport.Builder doNotValidateCertificate()
FetchOptions.doNotValidateCertificate()
(false
by
default).
Be careful! Disabling certificate validation is dangerous and should be done in testing environments only.
public UrlFetchTransport.Builder validateCertificate()
FetchOptions.validateCertificate()
(false
by default).public boolean getValidateCertificate()
FetchOptions.validateCertificate()
.public boolean getDoNotValidateCertificate()
FetchOptions.validateCertificate()
.public UrlFetchTransport build()
UrlFetchTransport
based on the options.Copyright © 2011–2020 Google. All rights reserved.