类 RestConnectionService
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.internal.RestConnectionService
- 直接已知子类:
RestStorageService
-
字段概要
字段修饰符和类型字段说明protected ProviderCredentialsprotected okhttp3.OkHttpClientprotected KeyManagerFactoryprivate static final ILoggerprotected ObsPropertiesprotected Semaphoreprotected AtomicBooleanprotected TrustManagerFactory -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private StringaddProtocol(String hostname, String resourceString) protected StringaddRequestParametersToUrlPath(String urlPath, Map<String, String> requestParameters, boolean isOEF) private okhttp3.Request.BuildercreateRequestBuilder(HttpMethodEnum method, okhttp3.RequestBody body, String url) protected Stringprotected intprotected booleanprotected intprotected voidinitHttpClient(okhttp3.Dispatcher httpDispatcher, okhttp3.Dns customizedDnsImpl) private voidprotected booleanisCname()protected booleanprotected booleanprotected okhttp3.Request.BuildersetupConnection(NewTransResult result, boolean isOEF, boolean isListBuckets) protected voidshutdown()protected void
-
字段详细资料
-
log
-
httpClient
protected okhttp3.OkHttpClient httpClient -
obsProperties
-
keyManagerFactory
-
trustManagerFactory
-
semaphore
-
shuttingDown
-
credentials
-
-
构造器详细资料
-
RestConnectionService
public RestConnectionService()
-
-
方法详细资料
-
initHttpClient
protected void initHttpClient(okhttp3.Dispatcher httpDispatcher, okhttp3.Dns customizedDnsImpl) -
shutdown
protected void shutdown() -
shutdownImpl
protected void shutdownImpl() -
invokeShutdown
private void invokeShutdown() -
setupConnection
protected okhttp3.Request.Builder setupConnection(NewTransResult result, boolean isOEF, boolean isListBuckets) throws ServiceException - 抛出:
ServiceException
-
createRequestBuilder
private okhttp3.Request.Builder createRequestBuilder(HttpMethodEnum method, okhttp3.RequestBody body, String url) -
addProtocol
-
addRequestParametersToUrlPath
protected String addRequestParametersToUrlPath(String urlPath, Map<String, String> requestParameters, boolean isOEF) throws ServiceException- 抛出:
ServiceException
-
getEndpoint
-
getHttpPort
protected int getHttpPort() -
getHttpsPort
protected int getHttpsPort() -
isKeepAlive
protected boolean isKeepAlive() -
isPathStyle
protected boolean isPathStyle() -
isCname
protected boolean isCname() -
getHttpsOnly
protected boolean getHttpsOnly()
-