public class JdkHttpExecutor extends Object implements HttpExecutor
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
JdkHttpExecutor.URLConnectionFactory
URL连接工厂
|
logger| 构造器和说明 |
|---|
JdkHttpExecutor() |
JdkHttpExecutor(JdkHttpExecutor.URLConnectionFactory connectionFactory) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
connectionHeaderSetting(HttpURLConnection connection,
Request request)
请求头设置
|
protected void |
connectionParamsSetting(HttpURLConnection connection,
Request request)
请求参数设置以及请求类型确认
|
void |
doExecute(Request request,
ResponseProcessor processor)
执行http请求
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, connectForBytes, connectForConfigMap, connectForConfigMapList, connectForEntity, connectForEntity, connectForEntity, connectForInputStream, connectForInputStreamSource, connectForMap, connectForMapList, connectForMultipartFile, connectForString, delete, deleteForBytes, deleteForConfigMap, deleteForConfigMapList, deleteForEntity, deleteForEntity, deleteForEntity, deleteForInputStream, deleteForInputStreamSource, deleteForMap, deleteForMapList, deleteForMultipartFile, deleteForString, execute, execute, execute, get, getBytes, getConfigMap, getConfigMapList, getEntity, getEntity, getEntity, getForBytes, getForConfigMap, getForConfigMapList, getForEntity, getForEntity, getForEntity, getForInputStream, getForInputStreamSource, getForMap, getForMapList, getForMultipartFile, getForString, getInputStream, getInputStreamSource, getMap, getMapList, getMultipartFile, getString, head, headForBytes, headForConfigMap, headForConfigMapList, headForEntity, headForEntity, headForEntity, headForInputStream, headForInputStreamSource, headForMap, headForMapList, headForMultipartFile, headForString, isFileRequest, isResourceParam, isResourceParam, options, optionsForBytes, optionsForConfigMap, optionsForConfigMapList, optionsForEntity, optionsForEntity, optionsForEntity, optionsForInputStream, optionsForInputStreamSource, optionsForMap, optionsForMapList, optionsForMultipartFile, optionsForString, patch, patchForBytes, patchForConfigMap, patchForConfigMapList, patchForEntity, patchForEntity, patchForEntity, patchForInputStream, patchForInputStreamSource, patchForMap, patchForMapList, patchForMultipartFile, patchForString, post, postForBytes, postForConfigMap, postForConfigMapList, postForEntity, postForEntity, postForEntity, postForInputStream, postForInputStreamSource, postForMap, postForMapList, postForMultipartFile, postForString, put, putForBytes, putForConfigMap, putForConfigMapList, putForEntity, putForEntity, putForEntity, putForInputStream, putForInputStreamSource, putForMap, putForMapList, putForMultipartFile, putForString, toHttpFile, toHttpFiles, trace, traceForBytes, traceForConfigMap, traceForConfigMapList, traceForEntity, traceForEntity, traceForEntity, traceForInputStream, traceForInputStreamSource, traceForMap, traceForMapList, traceForMultipartFile, traceForStringpublic JdkHttpExecutor(JdkHttpExecutor.URLConnectionFactory connectionFactory)
public JdkHttpExecutor()
public void doExecute(Request request, ResponseProcessor processor) throws Exception
HttpExecutordoExecute 在接口中 HttpExecutorrequest - 请求实例processor - 响应处理器Exceptionprotected void connectionHeaderSetting(HttpURLConnection connection, Request request)
connection - Http连接request - 请求protected void connectionParamsSetting(HttpURLConnection connection, Request request) throws IOException
connection - Http连接request - 请求信息IOException - IO异常Copyright © 2023. All rights reserved.