Package org.structr.web.common

Examples of org.structr.web.common.StringRenderBuffer


   * @throws FrameworkException
   */
  public String getContent(final RenderContext.EditMode editMode) throws FrameworkException {

    final RenderContext ctx = new RenderContext(null, null, editMode, Locale.GERMAN);
    final StringRenderBuffer buffer = new StringRenderBuffer();
    ctx.setBuffer(buffer);
    render(securityContext, ctx, 0);

    // extract source
    return buffer.getBuffer().toString();

  }
View Full Code Here


                }
              });

            } else {

              final StringRenderBuffer buffer = new StringRenderBuffer();
              renderContext.setBuffer(buffer);

              // render
              rootElement.render(securityContext, renderContext, 0);

              response.getOutputStream().write(buffer.getBuffer().toString().getBytes("utf-8"));
              response.getOutputStream().flush();
              response.getOutputStream().close();
            }
          }
View Full Code Here

TOP

Related Classes of org.structr.web.common.StringRenderBuffer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.