public abstract class AbstractHttpClientFactory extends Object implements HttpClientFactory
| 构造器和说明 |
|---|
AbstractHttpClientFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract org.slf4j.Logger |
assignLogger()
assign Logger.
|
protected abstract HttpClientConfig |
buildHttpClientConfig()
build http client config.
|
NacosAsyncRestTemplate |
createNacosAsyncRestTemplate()
create new nacos async rest.
|
NacosRestTemplate |
createNacosRestTemplate()
create new nacost rest.
|
protected org.apache.http.impl.nio.reactor.IOReactorConfig |
getIoReactorConfig() |
protected org.apache.http.client.config.RequestConfig |
getRequestConfig() |
protected void |
initTls(BiConsumer<SSLContext,HostnameVerifier> initTlsBiFunc,
TlsFileWatcher.FileChangeListener tlsChangeListener) |
protected SSLContext |
loadSSLContext() |
protected void |
monitorAndExtension(org.apache.http.nio.conn.NHttpClientConnectionManager connectionManager)
add some monitor and do some extension. default empty implementation, implemented by subclass
|
public NacosRestTemplate createNacosRestTemplate()
HttpClientFactorycreateNacosRestTemplate 在接口中 HttpClientFactorypublic NacosAsyncRestTemplate createNacosAsyncRestTemplate()
HttpClientFactorycreateNacosAsyncRestTemplate 在接口中 HttpClientFactoryprotected org.apache.http.impl.nio.reactor.IOReactorConfig getIoReactorConfig()
protected org.apache.http.client.config.RequestConfig getRequestConfig()
protected void initTls(BiConsumer<SSLContext,HostnameVerifier> initTlsBiFunc, TlsFileWatcher.FileChangeListener tlsChangeListener)
protected SSLContext loadSSLContext()
protected abstract HttpClientConfig buildHttpClientConfig()
protected abstract org.slf4j.Logger assignLogger()
protected void monitorAndExtension(org.apache.http.nio.conn.NHttpClientConnectionManager connectionManager)
Copyright © 2018–2024 Alibaba Group. All rights reserved.