com.mizar.metadata.mcserver
Class ClientConfig

java.lang.Object
  extended by com.mizar.metadata.mcserver.ClientConfig

public class ClientConfig
extends java.lang.Object


Constructor Summary
ClientConfig()
           
ClientConfig(java.lang.String clientConfigResponse)
          Example input:
 
Method Summary
 CoordSys getCoordSys()
           
 java.lang.String getDataSource()
           
 java.lang.String getFormat()
           
 int getLevelCount()
           
 java.lang.String getMapSource()
           
 java.lang.String getMapTileLayer()
           
protected static java.lang.String getValue(java.lang.String response, java.lang.String key, java.lang.String terminator)
           
 boolean isTransparent()
           
 void setCoordSys(CoordSys coordsys)
           
 void setDataSource(java.lang.String dataSource)
           
 void setFormat(java.lang.String format)
           
 void setMapSource(java.lang.String mapSource)
           
 void setMapTileLayer(java.lang.String mapTileLayer)
           
 void setTransparent(boolean transparent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientConfig

public ClientConfig()

ClientConfig

public ClientConfig(java.lang.String clientConfigResponse)

Example input:

The input has been formatted for readability here but does not contain new lines as delivered by mcserver and mcsadmin

   [ {
    "mapTileLayer":"LYR_CONGRESSIONAL_DISTRICT",
    "mapSource":"LYR_CONGRESSIONAL_DISTRICT",
    "dataSource":"PRECINCT",
    "format":"PNG",
    "transparent":true,
    "coordSys": {
        "srid":8307,
        "type":"GEODETIC",
        "distConvFactor":0.0,
        "minX":-85.36377,
        "minY":38.00886,
        "maxX":-80.112305,
        "maxY":42.548764},
        "zoomLevels": [
            {"zoomLevel":0,
             "name":"",
             "scale":"3887449.0",
             "tileWidth":2.3714207413954855,
             "tileHeight":2.3714207413954855,
             "tileImageWidth":256,
             "tileImageHeight":256},
            {"zoomLevel":1,
             "name":"",
             "scale":"1700976.0",
             "tileWidth":1.0376289867766566,
             "tileHeight":1.0376289867766566,
             "tileImageWidth":256,
             "tileImageHeight":256},
            {"zoomLevel":10,
             "name":"",
             "scale":"1000.0",
             "tileWidth":6.100197691070637E-4,
             "tileHeight":6.100197691070637E-4,
             "tileImageWidth":256,
             "tileImageHeight":256
            }
          ]
      } ]
 

Parameters:
clientConfigResponse - a response from a get_client_config request to mcserver
See Also:
MapCacheUtils#getClientConfig(String)
Method Detail

getValue

protected static java.lang.String getValue(java.lang.String response,
                                           java.lang.String key,
                                           java.lang.String terminator)

setMapTileLayer

public void setMapTileLayer(java.lang.String mapTileLayer)

getMapTileLayer

public java.lang.String getMapTileLayer()

setMapSource

public void setMapSource(java.lang.String mapSource)

getMapSource

public java.lang.String getMapSource()

setDataSource

public void setDataSource(java.lang.String dataSource)

getDataSource

public java.lang.String getDataSource()

setFormat

public void setFormat(java.lang.String format)

getFormat

public java.lang.String getFormat()

setTransparent

public void setTransparent(boolean transparent)

isTransparent

public boolean isTransparent()

setCoordSys

public void setCoordSys(CoordSys coordsys)

getCoordSys

public CoordSys getCoordSys()

getLevelCount

public int getLevelCount()