DefaultRoutePlanner
@Contract(threading=SAFE) @Deprecated public class DefaultHttpRoutePlanner extends Object implements HttpRoutePlanner
| Modifier and Type | Field and Description |
|---|---|
protected SchemeRegistry |
schemeRegistry
已过时。
方案注册表。
|
| Constructor and Description |
|---|
DefaultHttpRoutePlanner(SchemeRegistry schreg)
已过时。
创建一个新的默认路线规划器。
|
protected final SchemeRegistry schemeRegistry
public DefaultHttpRoutePlanner(SchemeRegistry schreg)
schreg - 方案注册表
public HttpRoute determineRoute(HttpHost target, HttpRequest request, HttpContext context) throws HttpException
HttpRoutePlanner复制
determineRoute在界面
HttpRoutePlanner
target - 请求的目标主机。
如果他们仍然可以确定路由,例如到默认目标或通过检查请求,那么实现可能会接受null 。
request - 请求执行
context - 用于后续执行的上下文。
实施可能会接受null 。
HttpException - in case of a problem
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.