public String getOutputEncoding() { return _infrastructure.getOutputEncoding(); } }
public String getOutputEncoding() { return _infrastructure.getOutputEncoding(); } }
/** * Called to start an ajax response. Writes xml doctype and starts * the <code>ajax-response</code> element that will contain all of * the returned content. */ void beginResponse() { _responseStarted = true; _writer.printRaw("<?xml version=\"1.0\" encoding=\"" + _cycle.getInfrastructure().getOutputEncoding() + "\"?>"); _writer.printRaw("<!DOCTYPE html " + "PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" " + "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" [" + NEWLINE + "<!ENTITY nbsp ' '>" + NEWLINE + "]>" + NEWLINE); _writer.printRaw("<ajax-response>"); }
/** * Called to start an ajax response. Writes xml doctype and starts * the <code>ajax-response</code> element that will contain all of * the returned content. */ void beginResponse() { _responseStarted = true; _writer.printRaw("<?xml version=\"1.0\" encoding=\"" + _cycle.getInfrastructure().getOutputEncoding() + "\"?>"); _writer.printRaw("<!DOCTYPE html " + "PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" " + "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" [" + NEWLINE + "<!ENTITY nbsp ' '>" + NEWLINE + "]>" + NEWLINE); _writer.printRaw("<ajax-response>"); }
/** * {@inheritDoc} */ public void renderResponse(IRequestCycle cycle) throws IOException { _localeManager.persistLocale(); ContentType contentType = new ContentType(CONTENT_TYPE + ";charset=" + cycle.getInfrastructure().getOutputEncoding()); String encoding = contentType.getParameter(ENCODING_KEY); if (encoding == null) { encoding = cycle.getEngine().getOutputEncoding(); contentType.setParameter(ENCODING_KEY, encoding); } if (_writer == null) { parseParameters(cycle); PrintWriter printWriter = _response.getPrintWriter(contentType); _writer = _markupWriterSource.newMarkupWriter(printWriter, contentType); } // render response TapestryUtils.storePageRenderSupport(cycle, _prs); cycle.renderPage(this); TapestryUtils.removePageRenderSupport(cycle); endResponse(); _writer.close(); }
/** * {@inheritDoc} */ public void renderResponse(IRequestCycle cycle) throws IOException { _localeManager.persistLocale(); ContentType contentType = new ContentType(CONTENT_TYPE + ";charset=" + cycle.getInfrastructure().getOutputEncoding()); String encoding = contentType.getParameter(ENCODING_KEY); if (encoding == null) { encoding = cycle.getEngine().getOutputEncoding(); contentType.setParameter(ENCODING_KEY, encoding); } if (_writer == null) { parseParameters(cycle); PrintWriter printWriter = _response.getPrintWriter(contentType); _writer = _markupWriterSource.newMarkupWriter(printWriter, contentType); } // render response TapestryUtils.storePageRenderSupport(cycle, _prs); cycle.renderPage(this); TapestryUtils.removePageRenderSupport(cycle); endResponse(); _writer.close(); }
_contentType = new ContentType(CONTENT_TYPE + ";charset=" + cycle.getInfrastructure().getOutputEncoding());
_contentType = new ContentType(CONTENT_TYPE + ";charset=" + cycle.getInfrastructure().getOutputEncoding());