@Deprecated public interface RequestDirector
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
execute(HttpHost target, HttpRequest request, HttpContext context)
已过时。
执行请求
|
HttpResponse execute(HttpHost target, HttpRequest request, HttpContext context) throws HttpException, IOException
注意:目前,每个请求都会实例化一个新的董事。 这与HttpClient 3中的HttpMethodDirector相同。
target - 请求的目标主机。
如果他们仍然可以确定路由,例如到默认目标或通过检查请求,那么实现可以接受null 。
request - 请求执行
context - 执行请求的上下文
HttpException - 出现问题时
IOException - 在出现IO问题或连接中止时
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.