Package org.geoserver.platform.resource

Examples of org.geoserver.platform.resource.Resource


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


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

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

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

     * Retrieve a resource relative to the root of the data directory. An empty path will retrieve
     * the directory itself.
     * @return A {@link Resource}
     */
    public @Nonnull Resource getRoot(String... path) {
        Resource r = get(Paths.path(path));
        assert r!=null;
        return r;
    }
View Full Code Here

     * Retrieve a resource in the the security directory. An empty path will retrieve
     * the directory itself.
     * @return A {@link Resource}
     */
    public @Nonnull Resource getSecurity(String... path) {
        Resource r = getPaths.path( SECURITY_DIR, Paths.path(path)));
        assert r!=null;
        return r;
    }
View Full Code Here

     * Retrieve a resource in the the workspaces directory. An empty path will retrieve
     * the directory itself.
     * @return A {@link Resource}
     */
    public @Nonnull Resource getWorkspaces(String... path) {
        Resource r = getPaths.path( WORKSPACE_DIR, Paths.path(path)));
        assert r!=null;
        return r;
    }
View Full Code Here

    /**
     * Retrieve the configuration xml for the default workspace.
     * @return A {@link Resource}
     */
    public @Nonnull Resource defaultWorkspaceConfig() {
        Resource r = getRoot("default.xml");
        assert r!=null;
        return r;
    }
View Full Code Here

     * the directory itself.
     * @param ws The workspace
     * @return A {@link Resource}
     */
    public @Nonnull Resource get(WorkspaceInfo ws, String... path) {
        Resource r;
        if(ws==null) {
            return resourceLoader.get("");
        } else {
            r = getWorkspacesws.getName(), Paths.path(path));
        }
View Full Code Here

     * Retrieve the workspace configuration XML as a Resource
     * @param ws The workspace
     * @return A {@link Resource}
     */
    public @Nonnull Resource config(WorkspaceInfo ws) {
        Resource r = get(ws, WORKSPACE_XML);
        assert r!=null;
        return r;
    }
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.