Java Doc for WebMapServer.java in  » GIS » GeoTools-2.4.1 » org » geotools » data » wms » 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 » GeoTools 2.4.1 » org.geotools.data.wms 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.data.ows.AbstractOpenWebService
      org.geotools.data.wms.WebMapServer

WebMapServer
public class WebMapServer extends AbstractOpenWebService (Code)
WebMapServer is a class representing a WMS. It is used to access the Capabilities document and perform requests. It supports multiple versions and will perform version negotiation automatically and use the highest known version that the server can communicate. If restriction of versions to be used is desired, this class should be subclassed and it's setupSpecifications() method over-ridden. It should add which version/specifications are to be used to the specs array. See the current implementation for an example. Example usage:
 WebMapServer wms = new WebMapServer("http://some.example.com/wms");
 WMSCapabilities capabilities = wms.getCapabilities();
 GetMapRequest request = wms.getMapRequest();
 ... //configure request
 GetMapResponse response = (GetMapResponse) wms.issueRequest(request);
 ... //extract image from the response
 

author:
   Richard Gould, Refractions Research



Constructor Summary
public  WebMapServer(URL serverURL)
     Creates a new WebMapServer instance and attempts to retrieve the Capabilities document specified by serverURL.

Method Summary
public  DescribeLayerRequestcreateDescribeLayerRequest()
    
public  GetFeatureInfoRequestcreateGetFeatureInfoRequest(GetMapRequest getMapRequest)
     Creates a GetFeatureInfoRequest that can be configured and then passed to issueRequest().
public  GetLegendGraphicRequestcreateGetLegendGraphicRequest()
    
public  GetMapRequestcreateGetMapRequest()
     Creates a GetMapRequest that can be configured and then passed to issueRequest().
public  GetStylesRequestcreateGetStylesRequest()
    
public  PutStylesRequestcreatePutStylesRequest()
    
public  WMSCapabilitiesgetCapabilities()
     Get the getCapabilities document.
public  GeneralEnvelopegetEnvelope(Layer layer, CoordinateReferenceSystem crs)
     Given a layer and a coordinate reference system, will locate an envelope for that layer in that CRS.
public  GetCapabilitiesResponseissueRequest(GetCapabilitiesRequest request)
    
public  GetMapResponseissueRequest(GetMapRequest request)
    
public  GetFeatureInfoResponseissueRequest(GetFeatureInfoRequest request)
    
public  DescribeLayerResponseissueRequest(DescribeLayerRequest request)
    
public  GetLegendGraphicResponseissueRequest(GetLegendGraphicRequest request)
    
public  GetStylesResponseissueRequest(GetStylesRequest request)
    
public  PutStylesResponseissueRequest(PutStylesRequest request)
    
protected  voidsetupSpecifications()
     Sets up the specifications/versions that this server is capable of communicating with.


Constructor Detail
WebMapServer
public WebMapServer(URL serverURL) throws IOException, ServiceException(Code)
Creates a new WebMapServer instance and attempts to retrieve the Capabilities document specified by serverURL.
Parameters:
  serverURL - a URL that points to the capabilities document of a server
throws:
  IOException - if there is an error communicating with the server
throws:
  ServiceException - if the server responds with an error




Method Detail
createDescribeLayerRequest
public DescribeLayerRequest createDescribeLayerRequest() throws UnsupportedOperationException(Code)



createGetFeatureInfoRequest
public GetFeatureInfoRequest createGetFeatureInfoRequest(GetMapRequest getMapRequest)(Code)
Creates a GetFeatureInfoRequest that can be configured and then passed to issueRequest().
Parameters:
  getMapRequest - a previous configured GetMapRequest a GetFeatureInfoRequest
throws:
  UnsupportedOperationException - if the server does not support GetFeatureInfo



createGetLegendGraphicRequest
public GetLegendGraphicRequest createGetLegendGraphicRequest() throws UnsupportedOperationException(Code)



createGetMapRequest
public GetMapRequest createGetMapRequest()(Code)
Creates a GetMapRequest that can be configured and then passed to issueRequest(). a configureable GetMapRequest object



createGetStylesRequest
public GetStylesRequest createGetStylesRequest() throws UnsupportedOperationException(Code)



createPutStylesRequest
public PutStylesRequest createPutStylesRequest() throws UnsupportedOperationException(Code)



getCapabilities
public WMSCapabilities getCapabilities()(Code)
Get the getCapabilities document. If there was an error parsing it during creation, it will return null (and it should have thrown an exception during creation). a WMSCapabilities object, representing the Capabilities of the server



getEnvelope
public GeneralEnvelope getEnvelope(Layer layer, CoordinateReferenceSystem crs)(Code)
Given a layer and a coordinate reference system, will locate an envelope for that layer in that CRS. If the layer is declared to support that CRS, but no envelope can be found, it will try to calculate an appropriate bounding box. If null is returned, no valid bounding box could be found and one couldn't be transformed from another.
Parameters:
  layer -
Parameters:
  crs - an Envelope containing a valid bounding box, or null if none are found



issueRequest
public GetCapabilitiesResponse issueRequest(GetCapabilitiesRequest request) throws IOException, ServiceException(Code)



issueRequest
public GetMapResponse issueRequest(GetMapRequest request) throws IOException, ServiceException(Code)



issueRequest
public GetFeatureInfoResponse issueRequest(GetFeatureInfoRequest request) throws IOException, ServiceException(Code)



issueRequest
public DescribeLayerResponse issueRequest(DescribeLayerRequest request) throws IOException, ServiceException(Code)



issueRequest
public GetLegendGraphicResponse issueRequest(GetLegendGraphicRequest request) throws IOException, ServiceException(Code)



issueRequest
public GetStylesResponse issueRequest(GetStylesRequest request) throws IOException, ServiceException(Code)



issueRequest
public PutStylesResponse issueRequest(PutStylesRequest request) throws IOException, ServiceException(Code)



setupSpecifications
protected void setupSpecifications()(Code)
Sets up the specifications/versions that this server is capable of communicating with.



Fields inherited from org.geotools.data.ows.AbstractOpenWebService
protected Capabilities capabilities(Code)(Java Doc)
final protected URL serverURL(Code)(Java Doc)
protected Specification specification(Code)(Java Doc)
protected Specification[] specs(Code)(Java Doc)

Methods inherited from org.geotools.data.ows.AbstractOpenWebService
protected Response internalIssueRequest(Request request) throws IOException, ServiceException(Code)(Java Doc)
public GetCapabilitiesResponse issueRequest(GetCapabilitiesRequest request) throws IOException, ServiceException(Code)(Java Doc)
protected Capabilities negotiateVersion() throws IOException, ServiceException(Code)(Java Doc)
public void setLoggingLevel(Level newLevel)(Code)(Java Doc)
abstract protected void setupSpecifications()(Code)(Java Doc)

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.