Class AbstractHttpResponseCodec

    • Constructor Detail

      • AbstractHttpResponseCodec

        public AbstractHttpResponseCodec()
    • Method Detail

      • encode

        public HttpResponse encode​(java.util.function.Supplier<HttpResponse> factory,
                                   Response response)
        Encodes the given response as a HTTP response message. This method is guaranteed not to throw.
        Specified by:
        encode in interface ResponseCodec<HttpResponse>
        response - The response to encode.
        factory - creates a new instance of T.
        The encoded response.
      • getValueToEncode

        protected abstract java.lang.Object getValueToEncode​(Response response)
      • reconstructValue

        protected abstract Response reconstructValue​(Response response)