T
- The type of an encoded response.public interface ResponseCodec<T>
Response
objects to and from another representation.Modifier and Type | Method and Description |
---|---|
Response |
decode(T encodedResponse)
Decodes a response.
|
T |
encode(Response response)
Encodes a response.
|
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.