public class WMService
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
WMS_1_0_0  | 
static java.lang.String | 
WMS_1_1_0  | 
static java.lang.String | 
WMS_1_1_1  | 
static java.lang.String | 
WMS_1_3_0  | 
| Constructor and Description | 
|---|
WMService(java.lang.String serverUrl)
Constructs a WMService object from a server URL. 
 | 
WMService(java.lang.String serverUrl,
         java.lang.String wmsVersion)
Constructs a WMService object from a server URL. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
MapRequest | 
createMapRequest()
Creates a new MapRequest object which can be used to retrieve a Map
 from this service. 
 | 
Capabilities | 
getCapabilities()
Gets the Capabilities for this service. 
 | 
java.lang.String | 
getServerUrl()
Gets the url of the map service. 
 | 
java.lang.String | 
getTitle()
Gets the title of the map service. 
 | 
java.lang.String | 
getVersion()  | 
void | 
initialize()  | 
void | 
initialize(boolean alertDifferingURL)
Connect to the service and get the capabilities. 
 | 
public static final java.lang.String WMS_1_0_0
public static final java.lang.String WMS_1_1_0
public static final java.lang.String WMS_1_1_1
public static final java.lang.String WMS_1_3_0
public WMService(java.lang.String serverUrl,
         java.lang.String wmsVersion)
serverUrl - the URL of the WMS serverwmsVersion - public WMService(java.lang.String serverUrl)
serverUrl - the URL of the WMS serverpublic void initialize()
                throws java.io.IOException
java.io.IOExceptionpublic void initialize(boolean alertDifferingURL)
                throws java.io.IOException
alertDifferingURL - alert the user if a different GetMap URL is availablejava.io.IOExceptionpublic java.lang.String getServerUrl()
public java.lang.String getTitle()
public Capabilities getCapabilities()
public MapRequest createMapRequest()
public java.lang.String getVersion()