Package org.geoserver.platform.resource

Examples of org.geoserver.platform.resource.Resource


     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #config(DataStoreInfo)}, {@link #config(CoverageStoreInfo)}, and {@link #config(WMSStoreInfo)}
     */
    @Deprecated
    public File findStoreFile(StoreInfo store) throws IOException {
        Resource resource = config(store);
        return Resources.file(resource);
    }
View Full Code Here


     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(StoreInfo, String...)}
     */
    @Deprecated
    public File findOrResolveStoreFile(StoreInfo store) throws IOException {
        Resource resource = get(store);
        return resource.file();
    }
View Full Code Here

     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(StoreInfo, String...)}
     */
    @Deprecated
    public File findSuppStoreFile(StoreInfo store, String filename) throws IOException {
        Resource resource = get(store, filename);
        return Resources.file(resource);
    }
View Full Code Here

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

     * </p>
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(StoreInfo, String...)}
     */
    public void copyToStoreDir(StoreInfo store, InputStream data, String filename)
            throws IOException {
        Resource directory = get(store);
        Resources.copy(data, directory, filename);
    }
View Full Code Here

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

     * Returns the directory in which a resources configuration is persisted, if the directory does not exist it will be created.
     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(ResourceInfo, String...)}
     */
    public File findOrCreateResourceDir(ResourceInfo r) throws IOException {
        Resource directory = get(r);
        return directory.dir();
    }
View Full Code Here

     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #config(FeatureTypeInfo, String...)}, {@link #config(CoverageInfo, String...)}, {@link #config(WMSLayerInfo, String...)}
     */
    @Deprecated
    public File findResourceFile(ResourceInfo r) throws IOException {
        Resource resource = config(r);
        return Resources.file(resource);
    }
View Full Code Here

     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #config(FeatureTypeInfo, String...)}, {@link #config(CoverageInfo, String...)}, {@link #config(WMSLayerInfo, String...)}
     */
    @Deprecated
    public File findOrResolveResourceFile(ResourceInfo r) throws IOException {
        Resource resource = config(r);
        return resource.file();
    }
View Full Code Here

     *
     * @deprecated As of GeoServer 2.6, replaced by {@link #get(ResourceInfo, String...)}
     */
    @Deprecated
    public File findSuppResourceFile(ResourceInfo r, String filename) throws IOException {
        Resource resource = get(r, filename);
        return Resources.file(resource);
    }
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.