Seperated web API code, from plain java code, by creating seperate constructors and handling Http stuff in just two methods: "clientRequest" and "handleDownloadResponse". Results in using HttpServlet code in an isolated/thin layer, making it easier to test and reuse all other methods.
Seperated web API code, from plain java code, by creating seperate constructors and handling Http stuff in just two methods: "clientRequest" and "handleDownloadResponse".
Results in using HttpServlet code in an isolated/thin layer, making it easier to test and reuse all other methods.