| Modifier and Type | Field and Description |
|---|---|
| private final ReactiveRequest |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | onBegin(Response
the response containing the response line data response)Overrides default org. |
| public void | onComplete(Result
the result of the request / response exchange result)Overrides default org. |
| public void | onContent(Response
the response containing the response line data and the headers response, ByteBuffer the content bytes received content)Overrides default org. |
| public void | |
| public void | onContentSource(Response
the response containing the response line data and the headers response, Content.the sourceContent. that must be driven to read the dataOverrides default org. |
| public void | onFailure(Response
the response containing data up to the point the failure happened response, Throwable the failure happened failure)Overrides default org. |
| public boolean | onHeader(Response
the response containing the response line data and the headers so far response, HttpField the header received field)Overrides default org. |
| public void | onHeaders(Response
the response containing the response line data and the headers response)Overrides default org. |
| public void | onSuccess(Response
the response containing the response line data and the headers response)Overrides default org. |
| request | back to summary |
|---|---|
| private final ReactiveRequest request | |
| ResponseEventPublisher | back to summary |
|---|---|
| public ResponseEventPublisher(ReactiveRequest request) | |
| onBegin | back to summary |
|---|---|
| public void onBegin(Response response) Overrides default org. Doc from org. Callback method invoked when the response line containing HTTP version, HTTP status code and reason has been received and parsed. This method is the best approximation to detect when the first bytes of the response arrived to the client. | |
| onComplete | back to summary |
|---|---|
| public void onComplete(Result result) Overrides default org. Doc from org. Callback method invoked when the request and the response have been processed, either successfully or not.
The
Requests may complete after response, for example in case of big uploads that are
discarded or read asynchronously by the server.
This method is always invoked after | |
| onContent | back to summary |
|---|---|
| public void onContent(Response response, ByteBuffer content) Overrides default org. Doc from org. Callback method invoked when the response content has been received, parsed and there is demand.
This method may be invoked multiple times, and the
| |
| onContent | back to summary |
|---|---|
| public void onContent(Response response, Content. Overrides default org.
| |
| onContentSource | back to summary |
|---|---|
| public void onContentSource(Response response, Content. Overrides default org. Doc from org. Callback method invoked when all the response headers have been received and parsed.
It is responsible for driving the
| |
| onFailure | back to summary |
|---|---|
| public void onFailure(Response response, Throwable failure) Overrides default org. Doc from org. Callback method invoked when the response has failed in the process of being received | |
| onHeader | back to summary |
|---|---|
| public boolean onHeader(Response response, HttpField field) Overrides default org. Doc from org. Callback method invoked when a response header has been received and parsed, returning whether the header should be processed or not. | |
| onHeaders | back to summary |
|---|---|
| public void onHeaders(Response response) Overrides default org. Doc from org. Callback method invoked when all the response headers have been received and parsed. | |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(Response response) Overrides default org. Doc from org. Callback method invoked when the whole response has been successfully received. | |