1920212223242526
public class TestPageForActionLinkWithStream { public Object onAction() { return new TextStreamResponse("text/html", "<html><body>Rendered with TextStreamResponse</body></html>"); }
171819202122232425
public class TestPageForServletOutputStream { Object onActivate() { return new TextStreamResponse("text/html", "<html><body>Rendered with TextStreamResponse</body></html>"); }
204205206207208209210
MarkupWriter writer = factory.newPartialMarkupWriter(contentType); generateResponseMarkup(writer, matchesHolder.get()); return new TextStreamResponse(contentType.toString(), writer.toString()); }
606162636465666768
} catch (Exception ex) { } return new TextStreamResponse("text/javascript", "document.write(\"<p id='slow'>Slow script loaded.</p>\");"); }
195196197198199200201
72737475767778
} Object onActionFromStreamReturnValue() { String text = "<html><body>Success!</body></html>"; return new TextStreamResponse("text/html", text); }
196197198199200201202
62636465666768
194195196197198199200
MarkupWriter writer = factory.newMarkupWriter(contentType); generateResponseMarkup(writer, matchesHolder.get()); return new TextStreamResponse(contentType.getMimeType(), writer.toString()); }