mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 08:19:51 +00:00
AbstractNetworkProvider: Expose HttpClient.setTrustAllCertificates() as an API method.
This commit is contained in:
parent
f7c7a9fa38
commit
845e066be8
1 changed files with 5 additions and 0 deletions
|
@ -88,6 +88,11 @@ public abstract class AbstractNetworkProvider implements NetworkProvider {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AbstractNetworkProvider setTrustAllCertificates(final boolean trustAllCertificates) {
|
||||||
|
httpClient.setTrustAllCertificates(trustAllCertificates);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
protected AbstractNetworkProvider setRequestUrlEncoding(final Charset requestUrlEncoding) {
|
protected AbstractNetworkProvider setRequestUrlEncoding(final Charset requestUrlEncoding) {
|
||||||
this.requestUrlEncoding = requestUrlEncoding;
|
this.requestUrlEncoding = requestUrlEncoding;
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue