示例#1
0
 /**
  * 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);
 }
示例#2
0
 /** Render with text. The contentType is: "text/plain". */
 public void renderText(String text) {
   render = renderFactory.getTextRender(text);
 }