Refine search
throws ServletException, IOException NoBodyResponse response = new NoBodyResponse(resp); response.setContentLength();
public PrintWriter getWriter() throws UnsupportedEncodingException { if (writer == null) { OutputStreamWriter w; w = new OutputStreamWriter(noBody, getCharacterEncoding()); writer = new PrintWriter(w); } return writer; }
/** * @deprecated As of Version 2.1, replaced by * {@link HttpServletResponse#encodeRedirectURL}. * */ public String encodeRedirectUrl(String url) { return this.encodeRedirectURL(url); }
void setContentLength() { if (!didSetContentLength) { if (writer != null) { writer.flush(); } setContentLength(noBody.getContentLength()); } }
@Override public void setIntHeader(String name, int value) { super.setIntHeader(name, value); checkHeader(name); }
protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { NoBodyResponse response = new NoBodyResponse(resp); doGet(req, response); response.setContentLength(); }
/** * @deprecated As of Version 2.1, replaced by * {@link HttpServletResponse#encodeURL}. * */ public String encodeUrl(String url) { return this.encodeURL(url); }
void setContentLength() { if (!didSetContentLength) { if (writer != null) { writer.flush(); } setContentLength(noBody.getContentLength()); } }
@Override public void setHeader(String name, String value) { super.setHeader(name, value); checkHeader(name); }
/** * @deprecated As of Version 2.1, replaced by * {@link HttpServletResponse#encodeURL}. * */ public String encodeUrl(String url) { return this.encodeURL(url); }
public PrintWriter getWriter() throws UnsupportedEncodingException { if (writer == null) { OutputStreamWriter w; w = new OutputStreamWriter(noBody, getCharacterEncoding()); writer = new PrintWriter(w); } return writer; }
void setContentLength() { if (!didSetContentLength) { if (writer != null) { writer.flush(); } setContentLength(noBody.getContentLength()); } }
NoBodyResponse response = new NoBodyResponse(resp); response.setContentLength();
@Override public void addIntHeader(String name, int value) { super.addIntHeader(name, value); checkHeader(name); }
/** * @deprecated As of Version 2.1, replaced by * {@link HttpServletResponse#encodeRedirectURL}. * */ public String encodeRedirectUrl(String url) { return this.encodeRedirectURL(url); }
/** * @deprecated As of Version 2.1, replaced by * {@link HttpServletResponse#encodeURL}. * */ public String encodeUrl(String url) { return this.encodeURL(url); }
public PrintWriter getWriter() throws UnsupportedEncodingException { if (usingOutputStream) { throw new IllegalStateException( lStrings.getString("err.ise.getWriter")); } if (writer == null) { OutputStreamWriter w = new OutputStreamWriter( noBody, getCharacterEncoding()); writer = new PrintWriter(w); } return writer; } }
void setContentLength() { if (!didSetContentLength) { if (writer != null) { writer.flush(); } setContentLength(noBody.getContentLength()); } }
throws ServletException, IOException NoBodyResponse response = new NoBodyResponse(resp); response.setContentLength();
@Override public void addHeader(String name, String value) { super.addHeader(name, value); checkHeader(name); }