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.wms.servlets;
06:
07: import org.vfny.geoserver.Response;
08: import org.vfny.geoserver.global.WMS;
09: import org.vfny.geoserver.util.requests.readers.KvpRequestReader;
10: import org.vfny.geoserver.util.requests.readers.XmlRequestReader;
11: import org.vfny.geoserver.wms.requests.GetFeatureInfoKvpReader;
12: import org.vfny.geoserver.wms.responses.GetFeatureInfoResponse;
13: import java.io.IOException;
14: import java.util.Map;
15: import javax.servlet.ServletException;
16: import javax.servlet.http.HttpServletRequest;
17: import javax.servlet.http.HttpServletResponse;
18:
19: /**
20: * WMS service wich returns request and response handlers to manage a GetMap
21: * request
22: *
23: * @author Gabriel Rold?n
24: * @version $Id: GetFeatureInfo.java 6326 2007-03-15 18:36:40Z jdeolive $
25: */
26: public class GetFeatureInfo extends WMService {
27: /**
28: * Creates a new GetMap object.
29: */
30: public GetFeatureInfo(WMS wms) {
31: super ("GetFeatureInfo", wms);
32: }
33:
34: public void doPost(HttpServletRequest request,
35: HttpServletResponse response) throws ServletException,
36: IOException {
37: doGet(request, response);
38: }
39:
40: /**
41: * DOCUMENT ME!
42: *
43: * @return DOCUMENT ME!
44: */
45: protected Response getResponseHandler() {
46: return new GetFeatureInfoResponse();
47: }
48:
49: /**
50: * DOCUMENT ME!
51: *
52: * @return DOCUMENT ME!
53: *
54: * @throws java.lang.UnsupportedOperationException DOCUMENT ME!
55: */
56: protected XmlRequestReader getXmlRequestReader() {
57: /**
58: * @todo Implement this org.vfny.geoserver.servlets.AbstractService
59: * abstract method
60: */
61: throw new java.lang.UnsupportedOperationException(
62: "Method getXmlRequestReader() not yet implemented.");
63: }
64:
65: /**
66: * DOCUMENT ME!
67: *
68: * @param params DOCUMENT ME!
69: *
70: * @return DOCUMENT ME!
71: */
72: protected KvpRequestReader getKvpReader(Map params) {
73: return new GetFeatureInfoKvpReader(params, this);
74: }
75: }
|