/** * resets the data to be sent to the browser */ @Override public void reset() { initBody(); }
/** * resets the data to be sent to the browser */ public void reset() { initBody(); }
/** resets the data to be sent to the browser */ public void reset(){ 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(); }
/** * 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(); }
/** * Creates a new HttpResponseImpl with user provided parameters * * @param code the HTTP Response code, see <a href="http://www.ietf.org/rfc/rfc2616.txt">http://www.ietf.org/rfc/rfc2616.txt</a> * for these codes * @param responseString the response string to be sent back * @param contentType the content type to be sent back */ protected HttpResponseImpl(final int code, final String responseString, final String contentType) { this.responseString = responseString; this.code = code; // Default headers setHeader("Server", getServerName()); setHeader("Connection", "close"); setHeader("Content-Type", contentType); // create the body. initBody(); }
/** Creates a new HttpResponseImpl with user provided parameters * @param code the HTTP Response code, see <a href="http://www.ietf.org/rfc/rfc2616.txt">http://www.ietf.org/rfc/rfc2616.txt</a> * for these codes * @param responseString the response string to be sent back * @param contentType the content type to be sent back */ protected HttpResponseImpl(int code, String responseString, String contentType){ this.responseString = responseString; this.code = code; // Default headers setHeader("Server", getServerName()); setHeader("Connection","close"); setHeader("Content-Type",contentType); // create the body. initBody(); }
/** * Creates a new HttpResponseImpl with user provided parameters * * @param code the HTTP Response code, see <a href="http://www.ietf.org/rfc/rfc2616.txt">http://www.ietf.org/rfc/rfc2616.txt</a> * for these codes * @param responseString the response string to be sent back * @param contentType the content type to be sent back */ protected HttpResponseImpl(final int code, final String responseString, final String contentType) { this.responseString = responseString; this.code = code; // Default headers setHeader("Server", getServerName()); setHeader("Connection", "close"); setHeader("Content-Type", contentType); // create the body. initBody(); }