01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.vfny.geoserver.wcs.servlets;
06:
07: import org.vfny.geoserver.Response;
08: import org.vfny.geoserver.global.WCS;
09: import org.vfny.geoserver.util.requests.readers.KvpRequestReader;
10: import org.vfny.geoserver.util.requests.readers.XmlRequestReader;
11: import org.vfny.geoserver.wcs.requests.readers.GetCoverageKvpReader;
12: import org.vfny.geoserver.wcs.requests.readers.GetCoverageXmlReader;
13: import org.vfny.geoserver.wcs.responses.CoverageResponse;
14: import java.util.Map;
15:
16: /**
17: * DOCUMENT ME!
18: *
19: * @author $Author: Alessio Fabiani (alessio.fabiani@gmail.com) $ (last modification)
20: * @author $Author: Simone Giannecchini (simboss1@gmail.com) $ (last modification)
21: */
22: public class Coverage extends WCService {
23: public Coverage(WCS wcs) {
24: super ("GetCoverage", wcs);
25: }
26:
27: /**
28: * Comment for <code>serialVersionUID</code>
29: */
30: private static final long serialVersionUID = 3257282552237797945L;
31:
32: protected Response getResponseHandler() {
33: return new CoverageResponse();
34: }
35:
36: protected KvpRequestReader getKvpReader(Map params) {
37: return new GetCoverageKvpReader(params, this );
38: }
39:
40: protected XmlRequestReader getXmlRequestReader() {
41: return new GetCoverageXmlReader(this);
42: }
43: }
|