gistoolkit.server.mapclient.wmsclient
Class WMSClient

java.lang.Object
  extended bygistoolkit.server.mapclient.wmsclient.WMSClient
Direct Known Subclasses:
WMSClient100

public abstract class WMSClient
extends java.lang.Object

Ancestor for the true clients of web services.


Constructor Summary
WMSClient()
          Creates new OGCWebServiceClient
 
Method Summary
abstract  void connect()
          Connect to the web service.
abstract  Layer[] getLayers()
          Retrieve the Available layers from the Connected Client
abstract  java.lang.String[] getMapFormats()
          Get the Available Map Formats
abstract  Layer[] getSelectedLayers()
          Returns the list of selected layers.
 java.lang.String getService()
          Retrive the name of the service
 java.lang.String getURLBase()
          Retrieve the location of the web service.
abstract  java.awt.Image read(Extents inExtents)
          Read the data source with the given extents
abstract  void setHeight(int inHeight)
          Set the height of the desired image
abstract  void setSelectedLayers(Layer[] inLayers)
          Set the layers of interest
abstract  void setSelectedMapFormat(java.lang.String inFormat)
          Set the Selected Map Formats
 void setService(java.lang.String inService)
          set the service name of the service when connecting to an ESRI service
 void setURLBase(java.lang.String inURLBase)
          Set the location of the web service.
abstract  void setWidth(int inWidth)
          Set the width of the desired image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMSClient

public WMSClient()
Creates new OGCWebServiceClient

Method Detail

setURLBase

public void setURLBase(java.lang.String inURLBase)
Set the location of the web service. This should be in the form of a URL


getURLBase

public java.lang.String getURLBase()
Retrieve the location of the web service.


setService

public void setService(java.lang.String inService)
set the service name of the service when connecting to an ESRI service


getService

public java.lang.String getService()
Retrive the name of the service


connect

public abstract void connect()
                      throws java.lang.Exception
Connect to the web service. If connection fails, then the return should be the reason.

Throws:
java.lang.Exception

getLayers

public abstract Layer[] getLayers()
Retrieve the Available layers from the Connected Client


setSelectedLayers

public abstract void setSelectedLayers(Layer[] inLayers)
Set the layers of interest


getSelectedLayers

public abstract Layer[] getSelectedLayers()
Returns the list of selected layers.


read

public abstract java.awt.Image read(Extents inExtents)
                             throws java.lang.Exception
Read the data source with the given extents

Throws:
java.lang.Exception

setWidth

public abstract void setWidth(int inWidth)
Set the width of the desired image


setHeight

public abstract void setHeight(int inHeight)
Set the height of the desired image


getMapFormats

public abstract java.lang.String[] getMapFormats()
Get the Available Map Formats


setSelectedMapFormat

public abstract void setSelectedMapFormat(java.lang.String inFormat)
Set the Selected Map Formats