Exemplo n.º 1
0
 @SuppressWarnings("ConstantConditions")
 @Override
 protected void doPost(HttpServletRequest req, HttpServletResponse resp)
     throws ServletException, IOException {
   ourpcServerHandler
       .get()
       .blockingHandle(
           req.getInputStream(),
           resp.getOutputStream(),
           size -> {
             resp.setStatus(HttpServletResponse.SC_OK);
             resp.setContentLength(size.intValue());
             return null;
           });
 }