public class CompatibleUrlConnClient extends Object implements Closeable
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
ACCEPT_ENCODING |
| 构造器和说明 |
|---|
CompatibleUrlConnClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpURLConnection |
buildHttpConnection(HttpRequest request) |
void |
checkHttpRequest(HttpRequest request) |
void |
close() |
static HttpResponse |
compatibleGetResponse(HttpRequest request) |
SSLSocketFactory |
createSSLSocketFactory() |
HttpURLConnection |
initHttpConnection(URL url,
HttpRequest request) |
void |
parseHttpConn(HttpResponse response,
HttpURLConnection httpConn,
InputStream content) |
HttpResponse |
syncInvoke(HttpRequest request) |
public static HttpResponse compatibleGetResponse(HttpRequest request) throws IOException, ClientException, NoSuchAlgorithmException
public HttpResponse syncInvoke(HttpRequest request) throws IOException, ClientException, NoSuchAlgorithmException
public SSLSocketFactory createSSLSocketFactory() throws ClientException
ClientExceptionpublic void checkHttpRequest(HttpRequest request)
public HttpURLConnection initHttpConnection(URL url, HttpRequest request) throws IOException, ClientException
public HttpURLConnection buildHttpConnection(HttpRequest request) throws IOException, ClientException
public void parseHttpConn(HttpResponse response, HttpURLConnection httpConn, InputStream content) throws IOException, NoSuchAlgorithmException
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2023. All rights reserved.