public class ProxyRequestConsumer extends Object implements org.apache.http.nio.protocol.HttpAsyncRequestConsumer<ProxyHttpExchange>
| 构造器和说明 |
|---|
ProxyRequestConsumer(ProxyHttpExchange httpExchange,
org.apache.http.nio.protocol.HttpAsyncRequester executor,
org.apache.http.impl.nio.pool.BasicNIOConnPool connPool) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
consumeContent(org.apache.http.nio.ContentDecoder decoder,
org.apache.http.nio.IOControl ioctrl) |
void |
failed(Exception ex) |
Exception |
getException() |
ProxyHttpExchange |
getResult() |
boolean |
isDone() |
void |
requestCompleted(org.apache.http.protocol.HttpContext context) |
void |
requestReceived(org.apache.http.HttpRequest request) |
public ProxyRequestConsumer(ProxyHttpExchange httpExchange, org.apache.http.nio.protocol.HttpAsyncRequester executor, org.apache.http.impl.nio.pool.BasicNIOConnPool connPool)
public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseablepublic void requestReceived(org.apache.http.HttpRequest request)
requestReceived 在接口中 org.apache.http.nio.protocol.HttpAsyncRequestConsumer<ProxyHttpExchange>public void consumeContent(org.apache.http.nio.ContentDecoder decoder,
org.apache.http.nio.IOControl ioctrl)
throws IOException
consumeContent 在接口中 org.apache.http.nio.protocol.HttpAsyncRequestConsumer<ProxyHttpExchange>IOExceptionpublic void requestCompleted(org.apache.http.protocol.HttpContext context)
requestCompleted 在接口中 org.apache.http.nio.protocol.HttpAsyncRequestConsumer<ProxyHttpExchange>public Exception getException()
getException 在接口中 org.apache.http.nio.protocol.HttpAsyncRequestConsumer<ProxyHttpExchange>public ProxyHttpExchange getResult()
getResult 在接口中 org.apache.http.nio.protocol.HttpAsyncRequestConsumer<ProxyHttpExchange>public boolean isDone()
isDone 在接口中 org.apache.http.nio.protocol.HttpAsyncRequestConsumer<ProxyHttpExchange>public void failed(Exception ex)
failed 在接口中 org.apache.http.nio.protocol.HttpAsyncRequestConsumer<ProxyHttpExchange>Copyright © 2025 onecode. All rights reserved.