| Package | Description |
|---|---|
| org.aoju.bus.http | |
| org.aoju.bus.http.accord | |
| org.aoju.bus.http.secure |
| Modifier and Type | Method and Description |
|---|---|
abstract RealConnection |
Builder.get(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation,
Route route) |
| Modifier and Type | Method and Description |
|---|---|
Route |
RouteSelector.Selection.next() |
Route |
StreamAllocation.route() |
Route |
RealConnection.route() |
Route |
Connection.route() |
| Modifier and Type | Method and Description |
|---|---|
List<Route> |
RouteSelector.Selection.getAll() |
| Modifier and Type | Method and Description |
|---|---|
void |
RouteDatabase.connected(Route route)
成功连接到
route |
void |
RouteSelector.connectFailed(Route failedRoute,
IOException failure)
当客户端在此路由选择器返回的连接上遇到连接失败时,应调用此方法
|
void |
RouteDatabase.failed(Route route)
记录连接到
route的失败 |
RealConnection |
ConnectionPool.get(Address address,
StreamAllocation streamAllocation,
Route route)
返回一个循环连接到
address,如果不存在这样的连接,
则返回null。如果地址尚未被路由,则路由为空. |
boolean |
RealConnection.isEligible(Address address,
Route route)
如果此连接可以将流分配到
address,则返回true。如果非空route是连接的解析路由 |
boolean |
RouteDatabase.shouldPostpone(Route route)
如果
route最近失败,应该避免返回true |
static RealConnection |
RealConnection.testConnection(ConnectionPool connectionPool,
Route route,
Socket socket,
long idleAtNanos) |
| Constructor and Description |
|---|
RealConnection(ConnectionPool connectionPool,
Route route) |
| Modifier and Type | Method and Description |
|---|---|
Request |
Authenticator.authenticate(Route route,
Response response)
该请求包含满足
response中的身份验证挑战的凭据。如果无法满足挑战,则返回null. |
Copyright © 2019. All rights reserved.