Package org.radeox.api.engine.context

Examples of org.radeox.api.engine.context.InitialRenderContext


            arg = "";
        }
       
        RenderContext context = new BaseRenderContext();
       
        InitialRenderContext initialContext = new BaseInitialRenderContext();
        initialContext.set(RenderContext.INPUT_LOCALE, new Locale("atabaque", ""));
        initialContext.set(RenderContext.OUTPUT_LOCALE, new Locale("atabaque", ""));
        Filter filter = new UnderlineFilter();
        filter.setInitialContext(initialContext);
        RenderEngine engineWithContext = new BaseRenderEngine(initialContext);
        return engineWithContext.render(arg, context);
    }
View Full Code Here


   *
   * @param context   the context in which the decoration is running
   * @param blogEntry the blog entry to be decorated
   */
  public void decorate(ContentDecoratorContext context, BlogEntry blogEntry) {
    InitialRenderContext initialContext = new BaseInitialRenderContext();
    initialContext.set(RenderContext.INPUT_LOCALE, getBlog().getLocale());
    RenderEngine engineWithContext = new RadeoxWikiRenderEngine(initialContext, getBlog());

    blogEntry.setExcerpt(wikify(blogEntry.getExcerpt(), engineWithContext, initialContext));
    blogEntry.setBody(wikify(blogEntry.getBody(), engineWithContext, initialContext));
  }
View Full Code Here

   *
   * @param context    the context in which the decoration is running
   * @param staticPage the static page to be decorated
   */
  public void decorate(ContentDecoratorContext context, StaticPage staticPage) {
    InitialRenderContext initialContext = new BaseInitialRenderContext();
    initialContext.set(RenderContext.INPUT_LOCALE, getBlog().getLocale());
    RenderEngine engineWithContext = new RadeoxWikiRenderEngine(initialContext, getBlog());

    staticPage.setBody(wikify(staticPage.getBody(), engineWithContext, initialContext));
  }
View Full Code Here

    private static final String WIKI_START_TAG = "<wiki>";
    private static final String WIKI_END_TAG = "</wiki>";

    public static String wikify(String content) {
        InitialRenderContext renderContext = new BaseInitialRenderContext();
        RenderEngine renderEngine = new RadeoxWikiRenderEngine(renderContext);
        // is there work to do?
        if (content == null || content.length() == 0) {
            return "";
        }
View Full Code Here

TOP

Related Classes of org.radeox.api.engine.context.InitialRenderContext

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.