/** * <p class="changed_added_2_0">Write the end of a partial response.</p> * * @throws IOException if an input/output error occurs * @since 2.0 */ public void endDocument() throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.endElement("partial-response"); }
/** * <p class="changed_added_2_0">Write the end of a partial response.</p> * * @throws IOException if an input/output error occurs * @since 2.0 */ @Override public void endDocument() throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); /* * Because during a <script> writing an exception can occur we need to * make sure the wrapped response only writes one partial-response, but * also calls to end the document (so we can properly cleanup in the * wrapped HtmlResponseWriter). See issue #3473. */ if (!(writer instanceof PartialResponseWriter)) { writer.endElement("partial-response"); } writer.endDocument(); }
/** * <p class="changed_added_2_0">Write the end of a partial response.</p> * * @throws IOException if an input/output error occurs * @since 2.0 */ public void endDocument() throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); /* * Because during a <script> writing an exception can occur we need to * make sure the wrapped response only writes one partial-response, but * also calls to end the document (so we can properly cleanup in the * wrapped HtmlResponseWriter). See issue #3473. */ if (!(writer instanceof PartialResponseWriter)) { writer.endElement("partial-response"); } writer.endDocument(); }
/** * <p class="changed_added_2_0">Write a redirect operation.</p> * * @param url URL to redirect to * @throws IOException if an input/output error occurs * @since 2.0 */ public void redirect(String url) throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("redirect", null); writer.writeAttribute("url", url, null); writer.endElement("redirect"); }
/** * <p class="changed_added_2_0">Write a redirect operation.</p> * * @param url URL to redirect to * @throws IOException if an input/output error occurs * @since 2.0 */ public void redirect(String url) throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("redirect", null); writer.writeAttribute("url", url, null); writer.endElement("redirect"); }
/** * <p class="changed_added_2_0">Write a redirect operation.</p> * * @param url URL to redirect to * @throws IOException if an input/output error occurs * @since 2.0 */ public void redirect(String url) throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("redirect", null); writer.writeAttribute("url", url, null); writer.endElement("redirect"); }
/** * <p class="changed_added_2_0">Write a redirect operation.</p> * * @param url URL to redirect to * @throws IOException if an input/output error occurs * @since 2.0 */ public void redirect(String url) throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("redirect", null); writer.writeAttribute("url", url, null); writer.endElement("redirect"); }
/** * <p class="changed_added_2_0">Write a redirect operation.</p> * * @param url URL to redirect to * @throws IOException if an input/output error occurs * @since 2.0 */ public void redirect(String url) throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("redirect", null); writer.writeAttribute("url", url, null); writer.endElement("redirect"); }
/** * <p class="changed_added_2_0">Write a redirect operation.</p> * * @param url URL to redirect to * @throws IOException if an input/output error occurs * @since 2.0 */ public void redirect(String url) throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("redirect", null); writer.writeAttribute("url", url, null); writer.endElement("redirect"); }
/** * <p class="changed_added_2_0">Write a redirect operation.</p> * * @param url URL to redirect to * @throws IOException if an input/output error occurs * @since 2.0 */ public void redirect(String url) throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("redirect", null); writer.writeAttribute("url", url, null); writer.endElement("redirect"); }
/** * <p class="changed_added_2_0">Write a redirect operation.</p> * * @param url URL to redirect to * @throws IOException if an input/output error occurs * @since 2.0 */ public void redirect(String url) throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("redirect", null); writer.writeAttribute("url", url, null); writer.endElement("redirect"); }
/** * <p class="changed_added_2_0">Write a redirect operation.</p> * * @param url URL to redirect to * @throws IOException if an input/output error occurs * @since 2.0 */ public void redirect(String url) throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("redirect", null); writer.writeAttribute("url", url, null); writer.endElement("redirect"); }
/** * <p class="changed_added_2_0">Write the start of an error.</p> * * @param errorName Descriptive string for the error * @throws IOException if an input/output error occurs * @since 2.0 */ public void startError(String errorName) throws IOException { endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("error", null); writer.startElement("error-name", null); writer.write(errorName); writer.endElement("error-name"); writer.startElement("error-message", null); writer.startCDATA(); }
/** * <p class="changed_added_2_0">Write the start of an error.</p> * * @param errorName Descriptive string for the error * @throws IOException if an input/output error occurs * @since 2.0 */ public void startError(String errorName) throws IOException { endUpdateIfNecessary(); endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("error", null); writer.startElement("error-name", null); writer.write(errorName); writer.endElement("error-name"); writer.startElement("error-message", null); writer.startCDATA(); }
/** * <p class="changed_added_2_0">Write the start of an error.</p> * * @param errorName Descriptive string for the error * @throws IOException if an input/output error occurs * @since 2.0 */ public void startError(String errorName) throws IOException { endUpdateIfNecessary(); endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("error", null); writer.startElement("error-name", null); writer.write(errorName); writer.endElement("error-name"); writer.startElement("error-message", null); writer.startCDATA(); }
/** * <p class="changed_added_2_0">Write the start of an error.</p> * * @param errorName Descriptive string for the error * @throws IOException if an input/output error occurs * @since 2.0 */ public void startError(String errorName) throws IOException { endUpdateIfNecessary(); endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("error", null); writer.startElement("error-name", null); writer.write(errorName); writer.endElement("error-name"); writer.startElement("error-message", null); writer.startCDATA(); }
/** * <p class="changed_added_2_0">Write the start of an error.</p> * * @param errorName Descriptive string for the error * @throws IOException if an input/output error occurs * @since 2.0 */ public void startError(String errorName) throws IOException { endUpdateIfNecessary(); endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("error", null); writer.startElement("error-name", null); writer.write(errorName); writer.endElement("error-name"); writer.startElement("error-message", null); writer.startCDATA(); }
/** * <p class="changed_added_2_0">Write the start of an error.</p> * * @param errorName Descriptive string for the error * @throws IOException if an input/output error occurs * @since 2.0 */ public void startError(String errorName) throws IOException { endUpdateIfNecessary(); endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("error", null); writer.startElement("error-name", null); writer.write(errorName); writer.endElement("error-name"); writer.startElement("error-message", null); writer.startCDATA(); }
/** * <p class="changed_added_2_0">Write the start of an error.</p> * * @param errorName Descriptive string for the error * @throws IOException if an input/output error occurs * @since 2.0 */ public void startError(String errorName) throws IOException { endUpdateIfNecessary(); endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("error", null); writer.startElement("error-name", null); writer.write(errorName); writer.endElement("error-name"); writer.startElement("error-message", null); writer.startCDATA(); }
/** * <p class="changed_added_2_0">Write the start of an error.</p> * * @param errorName Descriptive string for the error * @throws IOException if an input/output error occurs * @since 2.0 */ public void startError(String errorName) throws IOException { endUpdateIfNecessary(); endChangesIfNecessary(); ResponseWriter writer = getWrapped(); writer.startElement("error", null); writer.startElement("error-name", null); writer.write(errorName); writer.endElement("error-name"); writer.startElement("error-message", null); writer.startCDATA(); }