@Override public void init(WebConnection wc) { LOGGER.config("Servlet 3.1 Upgrade"); try { is = wc.getInputStream(); os = wc.getOutputStream(); this.wc = wc; } catch (IOException ioe) { throw new RuntimeException(ioe); } try { is.setReadListener(this); } catch (IllegalStateException e) { LOGGER.log(Level.WARNING, e.getMessage(), e); } connection = upgradeInfo.createConnection(writer, new Connection.CloseListener() { @Override public void close(CloseReason reason) { try { TyrusHttpUpgradeHandler.this.getWebConnection().close(); } catch (Exception e) { LOGGER.log(Level.FINE, e.getMessage(), e); } } }); connectionLatch.countDown(); }
ServletOutputStream sos; try { sis = connection.getInputStream(); sos = connection.getOutputStream(); } catch (IOException e) {