Package org.geoserver.platform.resource

Examples of org.geoserver.platform.resource.Resource


     * </p>
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(ResourceInfo, String...)}
     */
    @Deprecated
    public void copyToResourceDir(ResourceInfo resource, File file) throws IOException {
        Resource directory = get(resource);
        Resources.copy(file, directory);
    }
View Full Code Here


     * @deprecated As of GeoServer 2.6, replaced by {@link #get(ResourceInfo, String...)}
     */
    @Deprecated
    public void copyToResourceDir(ResourceInfo resource, InputStream data, String filename)
            throws IOException {
        Resource directory = get(resource);
        Resources.copy(data, directory, filename);
    }
View Full Code Here

     * Returns the configuration file for the specified namespace, if the file does not exist null is returned.
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(WorkspaceInfo, String...)}
     */
    @Deprecated
    public File findNamespaceFile(WorkspaceInfo ws) throws IOException {
        Resource directory = get(ws);
        return Resources.directory(directory);
    }
View Full Code Here

     * Returns the configuration file for the specified namespace, if the file does not exist a file object is still returned.
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(WorkspaceInfo, String...)}
     */
    @Deprecated
    public File findOrResolveNamespaceFile(WorkspaceInfo ws) throws IOException {
        Resource directory = get(ws);
        return directory.dir();
    }
View Full Code Here

     * Returns the configuration file for the specified layer, if the file does not exist null is returned.
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(LayerInfo, String...)}
     */
    @Deprecated
    public File findLayerFile(LayerInfo layer) throws IOException {
        Resource resource = get(layer);
        return Resources.file(resource);
    }
View Full Code Here

     * Returns the configuration file for the specified layer, if the file does not exist a file object is still returned.
     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(LayerInfo, String...)}
     */
    public File findOrResolveLayerFile(LayerInfo layer) throws IOException {
        Resource resource = get(layer);
        return resource.file();
    }
View Full Code Here

     * Returns the directory in which global styles are persisted, if the directory does not exist null is returned.
     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(StyleInfo, String...)}
     */
    public File findStyleDir() throws IOException {
        Resource styles = get(STYLE_DIR);
        return Resources.directory(styles);
    }
View Full Code Here

     * Returns the directory in which global styles are persisted, if the directory does not exist it will be created.
     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(StyleInfo, String...)}
     */
    public File findOrCreateStyleDir() throws IOException {
        Resource styles = get(STYLE_DIR);
        return styles.dir();
    }
View Full Code Here

     * @throws IOException
     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(StyleInfo, String...)}
     */
    File styleDir(boolean create, StyleInfo styleInfo) throws IOException {
        Resource styles = get(styleInfo);
        return Resources.directory(styles, create);
    }
View Full Code Here

     * @throws IOException
     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(StyleInfo, String...)}
     */
    File styleDir(boolean create, WorkspaceInfo workspaceInfo) throws IOException {
        Resource styles = get(workspaceInfo, STYLE_DIR);
        return Resources.directory(styles, create);
    }
View Full Code Here

TOP

Related Classes of org.geoserver.platform.resource.Resource

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.