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.DescribeKvpReader;
12: import org.vfny.geoserver.wcs.requests.readers.DescribeXmlReader;
13: import org.vfny.geoserver.wcs.responses.DescribeResponse;
14: import java.util.Map;
15:
16: /**
17: * Implements the WFS DescribeFeatureTypes inteface, which tells clients the
18: * schema for each feature type. This servlet returns descriptions of all
19: * feature types served by the server. Note that this assumes that the
20: * possible schemas are only single tables, with no foreign key relationships
21: * with other tables.
22: *
23: * @author Rob Hranac, TOPP
24: * @author $Author: Alessio Fabiani (alessio.fabiani@gmail.com) $ (last modification)
25: * @author $Author: Simone Giannecchini (simboss1@gmail.com) $ (last modification)
26: * @version $Id: Describe.java 6326 2007-03-15 18:36:40Z jdeolive $
27: */
28: public class Describe extends WCService {
29: public Describe(WCS wcs) {
30: super ("DescribeCoverage", wcs);
31: }
32:
33: /**
34: * Comment for <code>serialVersionUID</code>
35: */
36: private static final long serialVersionUID = 3257003241991714611L;
37:
38: /**
39: * DOCUMENT ME!
40: *
41: * @return DOCUMENT ME!
42: */
43: protected Response getResponseHandler() {
44: return new DescribeResponse();
45: }
46:
47: /**
48: * DOCUMENT ME!
49: *
50: * @param params DOCUMENT ME!
51: *
52: * @return DOCUMENT ME!
53: */
54: protected KvpRequestReader getKvpReader(Map params) {
55: return new DescribeKvpReader(params, this );
56: }
57:
58: /**
59: * DOCUMENT ME!
60: *
61: * @return DOCUMENT ME!
62: */
63: protected XmlRequestReader getXmlRequestReader() {
64: return new DescribeXmlReader(this);
65: }
66: }
|