@Override public void setStatusMessage(final String responseString) { this.setResponseString(responseString); } }
public void setStatusMessage(final String responseString) { this.setResponseString(responseString); }
public void setStatusMessage(String responseString) { this.setResponseString(responseString); } }
/** * 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(); }
} catch (Throwable t) { res.setCode(400); res.setResponseString("Could not read the request"); res.getPrintWriter().println(t.getMessage()); t.printStackTrace(res.getPrintWriter());
} catch (final Throwable t) { res.setCode(400); res.setResponseString("Could not read the request"); try { res.getWriter().println(t.getMessage());
} catch (Throwable t) { res.setCode(400); res.setResponseString("Could not read the request"); try { res.getWriter().println(t.getMessage());