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.CapabilitiesKvpReader;
12: import org.vfny.geoserver.wcs.requests.readers.CapabilitiesXmlReader;
13: import org.vfny.geoserver.wcs.responses.WCSCapabilitiesResponse;
14: import java.util.Map;
15:
16: /**
17: * Implements the WCS GetCapabilities interface, which tells clients what the
18: * server can do.
19: *
20: * @author $Author: Alessio Fabiani (alessio.fabiani@gmail.com) $ (last modification)
21: * @author $Author: Simone Giannecchini (simboss1@gmail.com) $ (last modification)
22: * @version $Id: Capabilities.java 7957 2007-12-06 16:12:20Z aaime $
23: */
24: public class Capabilities extends WCService {
25: public Capabilities(WCS wcs) {
26: super ("GetCapabilities", wcs);
27: }
28:
29: /**
30: * Comment for <code>serialVersionUID</code>
31: */
32: private static final long serialVersionUID = 3258129176207636277L;
33:
34: /**
35: * DOCUMENT ME!
36: *
37: * @param params DOCUMENT ME!
38: *
39: * @return DOCUMENT ME!
40: */
41: protected KvpRequestReader getKvpReader(Map params) {
42: return new CapabilitiesKvpReader(params, this );
43: }
44:
45: /**
46: * DOCUMENT ME!
47: *
48: * @return DOCUMENT ME!
49: */
50: protected XmlRequestReader getXmlRequestReader() {
51: return new CapabilitiesXmlReader(this );
52: }
53:
54: /**
55: * DOCUMENT ME!
56: *
57: * @return DOCUMENT ME!
58: */
59: protected Response getResponseHandler() {
60: return new WCSCapabilitiesResponse(getApplicationContext());
61: }
62: }
|