Defines an interface for deserializing HTTP responses into objects. @param the type of object to return
| 318 | * @param <T> the type of object to return |
| 319 | */ |
| 320 | public interface ResponseCreator<T> { |
| 321 | /** |
| 322 | * Deserializes an HTTP response into a Java object of type T. |
| 323 | * @param response HTTP response object |
| 324 | * @param deserializer json deserializer |
| 325 | * @return an object of type T |
| 326 | * @throws ChainException |
| 327 | * @throws IOException |
| 328 | */ |
| 329 | T create(Response response, Gson deserializer) throws ChainException, IOException; |
| 330 | } |
| 331 | |
| 332 | /** |
| 333 | * Builds and executes an HTTP Post request. |
no outgoing calls
no test coverage detected