Examples of FreemarkerFormat


Examples of org.geoserver.rest.FreemarkerFormat

    }

    public Map getSupportedFormats() {
        Map theMap = new HashMap();
        theMap.put("json", new JSONFormat());
        theMap.put("html", new FreemarkerFormat("HTMLTemplates/users.ftl", getClass(), MediaType.TEXT_HTML));
        theMap.put("xml", new AutoXMLFormat());
        theMap.put(null, theMap.get("html"));

        return theMap;
    }
View Full Code Here

Examples of org.geoserver.rest.format.FreemarkerFormat

        @Override
        protected List<DataFormat> createSupportedFormats(
                Request request, Response response) {
            ArrayList l = new ArrayList();

            l.add(new FreemarkerFormat("templates/index.ftl", getClass(), MediaType.TEXT_HTML));
            //l.add(null, m.get(MediaType.TEXT_HTML));

            return l;
        }
View Full Code Here

Examples of org.geoserver.rest.format.FreemarkerFormat

        @Override
        protected List<DataFormat> createSupportedFormats(
                Request request, Response response) {
            ArrayList l = new ArrayList();

            l.add(new FreemarkerFormat("templates/index.ftl", getClass(), MediaType.TEXT_HTML));
            //l.add(null, m.get(MediaType.TEXT_HTML));

            return l;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.