All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vfny.geoserver.util.requests.readers.XmlRequestReader Maven / Gradle / Ivy

There is a newer version: 1.7.0
Show newest version
/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org.  All rights reserved.
 * This code is licensed under the GPL 2.0 license, availible at the root
 * application directory.
 */
package org.vfny.geoserver.util.requests.readers;

import org.vfny.geoserver.Request;
import org.vfny.geoserver.ServiceException;
import org.vfny.geoserver.servlets.AbstractService;
import java.io.Reader;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;


/**
 * This utility reads in XML requests and returns them as appropriate request
 * objects.
 *
 * @author Rob Hranac, TOPP
 * @author Chris Holmes, TOPP
 * @author Gabriel Rold?n
 * @version $Id: XmlRequestReader.java 7746 2007-11-13 15:38:35Z aaime $
 */
public abstract class XmlRequestReader {
    /** Class logger */
    protected static Logger LOGGER = org.geotools.util.logging.Logging.getLogger("org.vfny.geoserver.requests.readers");

    /** The service handling the request **/
    private AbstractService service;

    /**
    * DOCUMENT ME!
    *
    * @param reader DOCUMENT ME!
    *
    * @return DOCUMENT ME!
    *
    * @throws ServiceException DOCUMENT ME!
    */
    public abstract Request read(Reader reader, HttpServletRequest req)
        throws ServiceException;

    /**
     * This will create a new XmlRequestReader
     * @param service The service handling the request
     */
    public XmlRequestReader(AbstractService service) {
        this.service = service;
    }

    /**
     * @return the service handling the request
     */
    public AbstractService getServiceRef() {
        return service;
    }

    /**
     * sets the service handling the request
     */
    public void setServiceRef(AbstractService service) {
        this.service = service;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy