public abstract class AbstractHttpResponseCodec extends java.lang.Object implements ResponseCodec<HttpResponse>
| Constructor and Description |
|---|
AbstractHttpResponseCodec() |
| Modifier and Type | Method and Description |
|---|---|
Response |
decode(HttpResponse encodedResponse)
Decodes a response.
|
HttpResponse |
encode(java.util.function.Supplier<HttpResponse> factory,
Response response)
Encodes the given response as a HTTP response message.
|
protected abstract java.lang.Object |
getValueToEncode(Response response) |
protected abstract Response |
reconstructValue(Response response) |
public HttpResponse encode(java.util.function.Supplier<HttpResponse> factory, Response response)
encode in interface ResponseCodec<HttpResponse>response - The response to encode.factory - creates a new instance of T.protected abstract java.lang.Object getValueToEncode(Response response)
public Response decode(HttpResponse encodedResponse)
ResponseCodecdecode in interface ResponseCodec<HttpResponse>encodedResponse - the response to decode.