org.fao.fenix.maps.configurations.MapsConf.java Source code

Java tutorial

Introduction

Here is the source code for org.fao.fenix.maps.configurations.MapsConf.java

Source

/**
 *
 * FENIX (Food security and Early warning Network and Information Exchange)
 *
 * Copyright (c) 2011, by FAO of UN under the EC-FAO Food Security
Information for Action Programme
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
package org.fao.fenix.maps.configurations;

import java.io.IOException;

import org.springframework.core.io.Resource;

/** 
 * @author <a href="mailto:simone.murzilli@fao.org">Simone Murzilli</a>
 * @author <a href="mailto:simone.murzilli@gmail.com">Simone Murzilli</a> 
 * */
public class MapsConf {

    private String url;

    private String stylesPath;

    private String imagesPath;

    public MapsConf(Resource styles, Resource images) {
        try {
            this.setStylesPath(styles.getFile().getPath());
            this.setImagesPath(images.getFile().getPath());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public String getStylesPath() {
        return stylesPath;
    }

    public void setStylesPath(String stylesPath) {
        this.stylesPath = stylesPath;
    }

    public String getImagesPath() {
        return imagesPath;
    }

    public void setImagesPath(String imagesPath) {
        this.imagesPath = imagesPath;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

}