类 RestUtils
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.internal.utils.RestUtils
-
嵌套类概要
嵌套类修饰符和类型类说明static classprivate static classprivate static class -
字段概要
字段修饰符和类型字段说明private static Patternprivate static final ILoggerprivate static final X509TrustManager -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static SSLContextcreateSSLContext(KeyManager[] km, TrustManager[] tm, String provider, SecureRandom secureRandom) private static SSLContextcreateSSLContext(KeyManager[] km, TrustManager[] tm, SecureRandom secureRandom) static StringencodeUrlPath(String path, String delimiter) static StringencodeUrlString(String path) static okhttp3.OkHttpClient.BuilderinitHttpClientBuilder(ObsProperties obsProperties, KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory, okhttp3.Dispatcher httpDispatcher, okhttp3.Dns customizedDnsImpl, SecureRandom secureRandom) private static voidinitHttpDispatcher(ObsProperties obsProperties, okhttp3.Dispatcher httpDispatcher, okhttp3.OkHttpClient.Builder builder) static voidinitHttpProxy(okhttp3.OkHttpClient.Builder builder, String proxyHostAddress, int proxyPort, String proxyUser, String proxyPassword) static StringreadBodyFromResponse(okhttp3.Response response) private static voidtryEncode(CharSequence input, boolean chineseOnly, StringBuilder result) static StringuriEncode(CharSequence input, boolean chineseOnly)
-
字段详细资料
-
log
-
SPECIAL_CHAR
-
chinesePattern
-
TRUST_ALL_MANAGER
-
-
构造器详细资料
-
RestUtils
public RestUtils()
-
-
方法详细资料
-
uriEncode
- 抛出:
ServiceException
-
tryEncode
private static void tryEncode(CharSequence input, boolean chineseOnly, StringBuilder result) throws UnsupportedEncodingException -
encodeUrlString
- 抛出:
ServiceException
-
encodeUrlPath
- 抛出:
ServiceException
-
createSSLContext
private static SSLContext createSSLContext(KeyManager[] km, TrustManager[] tm, String provider, SecureRandom secureRandom) throws Exception - 抛出:
Exception
-
createSSLContext
private static SSLContext createSSLContext(KeyManager[] km, TrustManager[] tm, SecureRandom secureRandom) throws Exception - 抛出:
Exception
-
initHttpClientBuilder
public static okhttp3.OkHttpClient.Builder initHttpClientBuilder(ObsProperties obsProperties, KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory, okhttp3.Dispatcher httpDispatcher, okhttp3.Dns customizedDnsImpl, SecureRandom secureRandom) -
initHttpDispatcher
private static void initHttpDispatcher(ObsProperties obsProperties, okhttp3.Dispatcher httpDispatcher, okhttp3.OkHttpClient.Builder builder) -
initHttpProxy
-
readBodyFromResponse
-