@Test public void testSendErrorWithReason() throws Exception { wrapper.sendError(HttpServletResponse.SC_BAD_GATEWAY, "test"); assertEquals(HttpServletResponse.SC_BAD_GATEWAY, entry.getStatus()); assertEquals("test", entry.getStatusReason()); }
@Override public void sendError(int sc) throws IOException { super.sendError(sc); entry.setStatus(sc); }
PirasoResponseWrapper extends HttpServletResponseWrapper { @Override public void sendError(int sc) throws IOException { super.sendError(sc); entry.setStatus(sc); } }
PirasoResponseWrapper extends HttpServletResponseWrapper { @Override public void sendError(int sc) throws IOException { super.sendError(sc); entry.setStatus(sc); } PirasoResponseWrapper(HttpServletResponse response, HttpResponseEntry entry); }
PirasoResponseWrapper extends HttpServletResponseWrapper { @Override public void sendError(int sc) throws IOException { super.sendError(sc); entry.setStatus(sc); } PirasoResponseWrapper(HttpServletResponse response, HttpResponseEntry entry); @Override void addCookie(Cookie cookie); @Override void addDateHeader(String name, long date); @Override void addHeader(String name, String value); @Override void addIntHeader(String name, int value); @Override void sendError(int sc); @Override void sendError(int sc, String msg); @Override void setDateHeader(String name, long date); @Override void setHeader(String name, String value); @Override void setIntHeader(String name, int value); @Override void setStatus(int sc); @Override void setStatus(int sc, String sm); }
PirasoResponseWrapper extends HttpServletResponseWrapper { @Override public void sendError(int sc) throws IOException { super.sendError(sc); entry.setStatus(sc); } PirasoResponseWrapper(HttpServletResponse response, HttpResponseEntry entry); @Override void addCookie(Cookie cookie); @Override void addDateHeader(String name, long date); @Override void addHeader(String name, String value); @Override void addIntHeader(String name, int value); @Override void sendError(int sc); @Override void sendError(int sc, String msg); @Override void setDateHeader(String name, long date); @Override void setHeader(String name, String value); @Override void setIntHeader(String name, int value); @Override void setStatus(int sc); @Override void setStatus(int sc, String sm);  }