Package org.restlet.ext.freemarker

Examples of org.restlet.ext.freemarker.ContextTemplateLoader


        String[] scopes = getQuery().getValuesArray("scope");
        String[] previousScopes = getQuery().getValuesArray("grantedScope");

        Configuration config = new Configuration();

        ContextTemplateLoader ctl = new ContextTemplateLoader(getContext(),
                "clap:///");
        config.setTemplateLoader(ctl);
        getLogger().info("loading: " + authPage);
        TemplateRepresentation result = new TemplateRepresentation(authPage,
                config, MediaType.TEXT_HTML);
View Full Code Here


  public Restlet createInboundRoot() {
    Context context = getContext();
   
    // initialize Freemarker templates   
    configuration = new Configuration();   
    configuration.setTemplateLoader(new ContextTemplateLoader(context, "clap://class/templates"));
    configuration.setDateFormat(config.getDateFormat());

    // map the routes
    Router router = new Router(context);
   
View Full Code Here

 
  final Configuration configuration;
 
  public ErrorStatusService(Context context) {
    this.configuration = new Configuration();
    this.configuration.setTemplateLoader(new ContextTemplateLoader(context, "clap://class/templates"));
  }
View Full Code Here

TOP

Related Classes of org.restlet.ext.freemarker.ContextTemplateLoader

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.