/** * Render with text and content type. * * <p>Example: renderText("<user id='5888'>James</user>", "application/xml"); */ public void renderText(String text, String contentType) { render = renderFactory.getTextRender(text, contentType); }
/** Render with text. The contentType is: "text/plain". */ public void renderText(String text) { render = renderFactory.getTextRender(text); }