Java Doc for GetFeatureInfoDelegate.java in  » GIS » GeoServer » org » vfny » geoserver » wms » responses » featureInfo » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoServer » org.vfny.geoserver.wms.responses.featureInfo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.vfny.geoserver.wms.responses.featureInfo.GetFeatureInfoDelegate

All known Subclasses:   org.vfny.geoserver.wms.responses.featureInfo.AbstractFeatureInfoResponse,
GetFeatureInfoDelegate
abstract public class GetFeatureInfoDelegate implements Response(Code)
Base class for GetFeatureInfo delegates responsible of creating GetFeatureInfo responses in different formats.

Subclasses should implement one or more output formats, wich will be returned in a list of mime type strings in getSupportedFormats. For example, a subclass can be created to write one of the following output formats:

  • text/plain
  • text/html

This abstract class takes care of executing the request in the sense of taking the GetFeatureInfo request parameters such as query_layers, bbox, x, y, etc., create the gt2 query objects for each featuretype and executing it. This process leads to a set of FeatureResults objects and its metadata, wich will be given to the execute(FeatureTypeInfo[] , FeatureResults[]) method, that a subclass should implement as a matter of setting up any resource/state it needs to later encoding.

So, it should be enough to a subclass to implement the following methods in order to produce the requested output format:

  • execute(FeatureTypeInfo[], FeatureResults[], int, int)
  • canProduce(String mapFormat)
  • getSupportedFormats()
  • writeTo(OutputStream)


author:
   Gabriel Roldan, Axios Engineering
author:
   Chris Holmes
version:
   $Id: GetFeatureInfoDelegate.java 8418 2008-02-18 14:47:17Z aaime $



Constructor Summary
public  GetFeatureInfoDelegate()
     Creates a new GetMapDelegate object.

Method Summary
public  voidabort(Service gs)
    
public  booleancanProduce(String mapFormat)
     Evaluates if this GetFeatureInfo producer can generate the map format specified by mapFormat, where mapFormat is the MIME type of the requested response.
public  voidexecute(Request request)
     Executes a Request, which must be a GetMapRequest.
protected  voidexecute(GetFeatureInfoRequest request)
     Executes a GetFeatureInfo request.
abstract protected  voidexecute(MapLayerInfo[] requestedLayers, Filter[] filters, int x, int y)
     Execute method for concrete children to implement.
protected  GetFeatureInfoRequestgetRequest()
     Gets the map request.
abstract public  ListgetSupportedFormats()
     Gets A list of the formats this delegate supports.


Constructor Detail
GetFeatureInfoDelegate
public GetFeatureInfoDelegate()(Code)
Creates a new GetMapDelegate object.




Method Detail
abort
public void abort(Service gs)(Code)
DOCUMENT ME!
Parameters:
  gs - DOCUMENT ME!



canProduce
public boolean canProduce(String mapFormat)(Code)
Evaluates if this GetFeatureInfo producer can generate the map format specified by mapFormat, where mapFormat is the MIME type of the requested response.
Parameters:
  mapFormat - the MIME type of the output map format requiered true if class can produce a map in the passed format



execute
public void execute(Request request) throws ServiceException(Code)
Executes a Request, which must be a GetMapRequest. Any other will cause a class cast exception.
Parameters:
  request - A valid GetMapRequest.
throws:
  ServiceException - If the request can not be executed.



execute
protected void execute(GetFeatureInfoRequest request) throws WmsException(Code)
Executes a GetFeatureInfo request. Builds the proper objects from the request names.
Parameters:
  request - A valid GetMapRequest.
throws:
  WmsException - If anything goes wrong.



execute
abstract protected void execute(MapLayerInfo[] requestedLayers, Filter[] filters, int x, int y) throws WmsException(Code)
Execute method for concrete children to implement. Each param is an array in the order things should be processed.
Parameters:
  requestedLayers - Array of config information of the FeatureTypesto be processed.
Parameters:
  queries - Matching array of layer definition filters
Parameters:
  x - the X coordinate in pixels where the identification must bedone relative to the image dimensions
Parameters:
  y - the Y coordinate in pixels where the identification must bedone relative to the image dimensions
throws:
  WmsException - For any problems executing.



getRequest
protected GetFeatureInfoRequest getRequest()(Code)
Gets the map request. Used by delegate children to find out more information about the request. The request to be processed.



getSupportedFormats
abstract public List getSupportedFormats()(Code)
Gets A list of the formats this delegate supports. A list of strings of the formats supported.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.