public final class ReactiveResponseConsumer extends Object implements org.apache.hc.core5.http.nio.AsyncResponseConsumer<ReactiveApacheHttpResponse>
| 构造器和说明 |
|---|
ReactiveResponseConsumer(HttpResponseHandler handler)
Creates a
ReactiveResponseConsumer. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
consume(ByteBuffer src) |
void |
consumeResponse(org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.http.protocol.HttpContext httpContext,
org.apache.hc.core5.concurrent.FutureCallback<ReactiveApacheHttpResponse> resultCallback) |
void |
failed(Exception cause) |
org.apache.hc.core5.http.EntityDetails |
getEntityDetails()
Returns the response entity details.
|
org.apache.hc.core5.http.HttpResponse |
getInformationResponse()
Returns the intermediate (1xx) HTTP response if one was received.
|
List<org.apache.hc.core5.http.Header> |
getTrailers()
Returns the trailers received at the end of the response.
|
void |
informationResponse(org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.protocol.HttpContext httpContext) |
void |
releaseResources() |
void |
streamEnd(List<? extends org.apache.hc.core5.http.Header> trailers) |
void |
updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel) |
public ReactiveResponseConsumer(HttpResponseHandler handler)
ReactiveResponseConsumer.public org.apache.hc.core5.http.HttpResponse getInformationResponse()
null if none.public org.apache.hc.core5.http.EntityDetails getEntityDetails()
null if none.public List<org.apache.hc.core5.http.Header> getTrailers()
public void consumeResponse(org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.http.protocol.HttpContext httpContext,
org.apache.hc.core5.concurrent.FutureCallback<ReactiveApacheHttpResponse> resultCallback)
consumeResponse 在接口中 org.apache.hc.core5.http.nio.AsyncResponseConsumer<ReactiveApacheHttpResponse>public void informationResponse(org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.protocol.HttpContext httpContext)
informationResponse 在接口中 org.apache.hc.core5.http.nio.AsyncResponseConsumer<ReactiveApacheHttpResponse>public void failed(Exception cause)
failed 在接口中 org.apache.hc.core5.http.nio.AsyncResponseConsumer<ReactiveApacheHttpResponse>public void updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel)
throws IOException
updateCapacity 在接口中 org.apache.hc.core5.http.nio.AsyncDataConsumerIOExceptionpublic void consume(ByteBuffer src) throws IOException
consume 在接口中 org.apache.hc.core5.http.nio.AsyncDataConsumerIOExceptionpublic void streamEnd(List<? extends org.apache.hc.core5.http.Header> trailers)
streamEnd 在接口中 org.apache.hc.core5.http.nio.AsyncDataConsumerpublic void releaseResources()
releaseResources 在接口中 org.apache.hc.core5.http.nio.ResourceHolderCopyright © 2023. All rights reserved.