Package org.geoserver.template

Examples of org.geoserver.template.GeoServerTemplateLoader


        t = (Template) templateCache.get(key);
        if(t != null)
            return t;
       
        // otherwise, build a loader and do the lookup
        GeoServerTemplateLoader templateLoader =
            new GeoServerTemplateLoader(lookup!=null?lookup:getClass());
        templateLoader.setFeatureType(featureType);

        //Configuration is not thread safe
        synchronized (templateConfig) {
            templateConfig.setTemplateLoader(templateLoader);
            t = templateConfig.getTemplate(template);
View Full Code Here


     */
    Template getTemplate(Name name, String templateFileName, Charset charset)
            throws IOException {
        // setup template subsystem
        if (templateLoader == null) {
            templateLoader = new GeoServerTemplateLoader(getClass());
        }

        if (name != null) {
            ResourceInfo ri = wms.getResourceInfo(name);
            if (ri != null) {
View Full Code Here

    @Before
    public void setUp() throws URISyntaxException, IOException {
        outputFormat = new HTMLFeatureInfoOutputFormat(getWMS());
       
        // configure template loader
        GeoServerTemplateLoader templateLoader = new GeoServerTemplateLoader(
                this.getClass(), getDataDirectory()) {
   
            @Override
            public Object findTemplateSource(String path) throws IOException {
                String templatePath;
View Full Code Here

    private void writeDescription(SimpleFeature feature,
            final SimpleFeatureType schema) throws IOException {
        if (vectorNameDescription) {
            // descriptions are "templatable" by users, so see if there is a
            // template available for use
            GeoServerTemplateLoader templateLoader = new GeoServerTemplateLoader(
                    getClass());
            templateLoader.setFeatureType(schema);

            Template template = null;

            // Configuration is not thread safe
            synchronized (templateConfig) {
View Full Code Here

TOP

Related Classes of org.geoserver.template.GeoServerTemplateLoader

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.