T - response message representation.public abstract class AbstractCharResponseConsumer<T>
extends AbstractCharDataConsumer
| Constructor and Description |
|---|
AbstractCharResponseConsumer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
buildResult()
Triggered to generate object that represents a result of response message processing.
|
protected void |
completed() |
void |
consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext context,
<any> resultCallback) |
void |
failed(java.lang.Exception cause) |
void |
informationResponse(HttpResponse response,
HttpContext context) |
protected abstract void |
start(HttpResponse response,
ContentType contentType)
Triggered to signal the beginning of data processing.
|
protected abstract void start(HttpResponse response,
ContentType contentType)
throws HttpException,
java.io.IOException
response - the response message headcontentType - the content type of the response body,
or null if the response does not enclose a response entity.HttpExceptionjava.io.IOExceptionprotected abstract T buildResult() throws java.io.IOException
java.io.IOExceptionpublic void informationResponse(HttpResponse response,
HttpContext context)
throws HttpException,
java.io.IOException
HttpExceptionjava.io.IOExceptionpublic final void consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext context,
<any> resultCallback)
throws HttpException,
java.io.IOException
HttpExceptionjava.io.IOExceptionprotected final void completed()
throws java.io.IOException
java.io.IOExceptionpublic void failed(java.lang.Exception cause)