T - The type of an encoded response.public interface ResponseCodec<T>
Response objects to and from another representation.T encode(Response response)
response - the response to encode.IllegalArgumentException - If the object cannot be encoded.Response decode(T encodedResponse)
encodedResponse - the response to decode.IllegalArgumentException - If the object cannot be decoded.Copyright © 2015. All rights reserved.