Package org.restlet.ext.freemarker.internal

Examples of org.restlet.ext.freemarker.internal.ResolverHashModel


     */
    protected Object createDataModel(Request request, Response response) {
        Object result = null;

        if (this.dataModel == null) {
            result = new ResolverHashModel(Resolver.createResolver(request,
                    response));
        } else {
            result = this.dataModel;
        }

View Full Code Here


     * @param response
     *            The response where data are located.
     * @return The template's data model.
     */
    public Object setDataModel(Request request, Response response) {
        this.dataModel = new ResolverHashModel(Resolver.createResolver(request,
                response));
        return this.dataModel;
    }
View Full Code Here

     * @param resolver
     *            The resolver.
     * @return The template's data model.
     */
    public Object setDataModel(Resolver<Object> resolver) {
        this.dataModel = new ResolverHashModel(resolver);
        return this.dataModel;
    }
View Full Code Here

    public Representation toRepresentation(Object source, Variant target,
            UniformResource resource) throws IOException {

        if (source instanceof Template) {
            return new TemplateRepresentation((Template) source,
                    new ResolverHashModel(Resolver.createResolver(
                            resource.getRequest(), resource.getResponse())),
                    target.getMediaType());

        }
View Full Code Here

TOP

Related Classes of org.restlet.ext.freemarker.internal.ResolverHashModel

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.