Package org.geoserver.platform

Examples of org.geoserver.platform.GeoServerResourceLoader.createFile()


                throw new RestletException( msg, Status.CLIENT_ERROR_FORBIDDEN);
            }
           
            //TODO: have the writing out of the style delegate to ResourcePool.writeStyle()
            try {
                f = loader.createFile( "styles/" + name + ".sld") ;
               
                //serialize the file to the styles directory
                BufferedOutputStream out = new BufferedOutputStream( new FileOutputStream ( f ) );
               
                SLDFormat format = new SLDFormat(true);
View Full Code Here


                }
                // Copy the default property file into the data directory
                URL url = DownloadServiceConfigurationWatcher.class
                        .getResource(DEFAULT_PROPERTY_PATH);
                if (url != null) {
                    properties = loader.createFile(PROPERTYFILENAME);
                    loader.copyFromClassPath(DEFAULT_PROPERTY_PATH, properties,
                            DownloadServiceConfigurationWatcher.class);
                }
            } catch (IOException e) {
                if (LOGGER.isLoggable(Level.WARNING)) {
View Full Code Here

                throw new RestletException( msg, Status.CLIENT_ERROR_FORBIDDEN);
            }
           
            //TODO: have the writing out of the style delegate to ResourcePool.writeStyle()
            try {
                f = loader.createFile( "styles/" + name + ".sld") ;
               
                //serialize the file to the styles directory
                BufferedOutputStream out = new BufferedOutputStream( new FileOutputStream ( f ) );
               
                SLDFormat format = new SLDFormat(true);
View Full Code Here

public class InspireInitializer implements GeoServerInitializer {

    public void initialize(GeoServer geoServer) throws Exception {
        // copy over the schema
        GeoServerResourceLoader l = geoServer.getCatalog().getResourceLoader();
        File target = l.createFile("www", "inspire", "inspire_vs.xsd");
        l.copyFromClassPath("inspire_vs.xsd", target, getClass());
        Assert.isTrue(target.exists());
    }

}
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.