@Override public void setStatus(final int i) { setCode(i); }
@Override public void setStatus(final int i) { setCode(i); }
@Override public void sendError(final int i) throws IOException { setCode(i); }
@Override public void sendError(final int i) throws IOException { setCode(i); }
public void setStatusCode(int code) { this.setCode(code); }
@Override public void setStatus(final int i, final String s) { setCode(i); setStatusMessage(s); }
@Override public void sendError(final int i, final String s) throws IOException { setCode(i); setStatusMessage(s); }
@Override public void setStatus(final int i, final String s) { setCode(i); setStatusMessage(s); }
@Override public void sendError(final int i, final String s) throws IOException { setCode(i); setStatusMessage(s); }
/** * resets the data to be sent to the browser with the response code and response * string * * @param code the code to be sent to the browser * @param responseString the response string to be sent to the browser */ public void reset(final int code, final String responseString) { setCode(code); setResponseString(responseString); initBody(); }
/** * resets the data to be sent to the browser with the response code and response * string * * @param code the code to be sent to the browser * @param responseString the response string to be sent to the browser */ public void reset(final int code, final String responseString) { setCode(code); setResponseString(responseString); initBody(); }
/** resets the data to be sent to the browser with the response code and response * string * @param code the code to be sent to the browser * @param responseString the response string to be sent to the browser */ public void reset(int code, String responseString){ setCode(code); setResponseString(responseString); initBody(); }
res.setRequest(req); } catch (Throwable t) { res.setCode(400); res.setResponseString("Could not read the request"); res.getPrintWriter().println(t.getMessage());
res.setCode(400); res.setResponseString("Could not read the request"); try {
res.setCode(400); res.setResponseString("Could not read the request"); try {