org.deegree_impl.services.wms.capabilities
Class DeegreeParam_Impl

java.lang.Object
  extended byorg.deegree_impl.services.wms.capabilities.DeegreeParam_Impl
All Implemented Interfaces:
DeegreeParam, Marshallable

class DeegreeParam_Impl
extends java.lang.Object
implements DeegreeParam, Marshallable

Version:
$Revision: 1.13 $
Author:
Andreas Poth, Markus Schneider

Field Summary
private  int cacheSize
           
private  java.lang.String copyRight
           
private  java.net.URL defaultOnlineResource
           
private  java.net.URL dtdLocation
           
private  GazetteerParam gazetteer
           
private  float mapQuality
           
private  int maxLifeTime
           
private  int maxMapHeight
           
private  int maxMapWidth
           
private  Proxy proxy
           
private  int requestTimeLimit
           
private  java.lang.String rootDirectory
           
private  java.net.URL schemaLocation
           
 
Constructor Summary
(package private) DeegreeParam_Impl(int cacheSize, int maxLifeTime, int requestTimeLimit, float mapQuality, java.net.URL defaultOnlineResource, java.lang.String rootDirectory, int maxMapWidth, int maxMapHeight, java.lang.String copyRight, GazetteerParam gazetteer, java.net.URL schemaLocation, java.net.URL dtdLocation, Proxy proxy)
          Creates a new instance of DeegreeParam_Impl
 
Method Summary
 java.lang.String exportAsXML()
          Returns an XML representation of this object.
 int getCacheSize()
          returns the cache size used for the WMS in MB. default is 100MB.
 java.lang.String getCopyRight()
          returns a copy right note to draw at the left side of the maps bottom
 java.net.URL getDefaultOnlineResource()
          returns the default URL of the deegree WMS which is used as default if no other URL is specified in the capabilities/configuration document if required.
 java.net.URL getDTDLocation()
          returns the URL where the DTD defining the OGC WMS capabilities is located
 GazetteerParam getGazetteer()
          returns the URL where to access the gazetteer service associated with the WMS
 float getMapQuality()
          returns the quality of the map for none loss-less image formats. the value ranges from 0 (lowest quality) to 1 (best quality) Default is 0.95
 int getMaxLifeTime()
          returns the maximum life time of the internal processes (Threads) of the deegree WMS. default is 3600 seconds.
 int getMaxMapHeight()
          returns the maximum map height that can be requested.
 int getMaxMapWidth()
          returns the maximum map width that can be requested.
 Proxy getProxy()
          returns the proxy used with the WMS.
 int getRequestTimeLimit()
          returns the maximum time the perfoming of a request is allowed to take.
 java.lang.String getRootDirectory()
          returns the root directory of the deegree WMS installation, The directory contains the WEB-INF directory and so the deployment descriptor for publishing the WMS to the servlet engine.
 java.net.URL getSchemaLocation()
          returns the URL where the sxm schema definition of the response to an GetFeatureInfo request is located
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rootDirectory

private java.lang.String rootDirectory

defaultOnlineResource

private java.net.URL defaultOnlineResource

mapQuality

private float mapQuality

cacheSize

private int cacheSize

maxLifeTime

private int maxLifeTime

requestTimeLimit

private int requestTimeLimit

maxMapWidth

private int maxMapWidth

maxMapHeight

private int maxMapHeight

copyRight

private java.lang.String copyRight

gazetteer

private GazetteerParam gazetteer

schemaLocation

private java.net.URL schemaLocation

dtdLocation

private java.net.URL dtdLocation

proxy

private Proxy proxy
Constructor Detail

DeegreeParam_Impl

DeegreeParam_Impl(int cacheSize,
                  int maxLifeTime,
                  int requestTimeLimit,
                  float mapQuality,
                  java.net.URL defaultOnlineResource,
                  java.lang.String rootDirectory,
                  int maxMapWidth,
                  int maxMapHeight,
                  java.lang.String copyRight,
                  GazetteerParam gazetteer,
                  java.net.URL schemaLocation,
                  java.net.URL dtdLocation,
                  Proxy proxy)
Creates a new instance of DeegreeParam_Impl

Method Detail

getCacheSize

public int getCacheSize()
returns the cache size used for the WMS in MB. default is 100MB. Datasources that are linked to WMS are not targeted by this value.

Specified by:
getCacheSize in interface DeegreeParam
Returns:
cache size

getDefaultOnlineResource

public java.net.URL getDefaultOnlineResource()
returns the default URL of the deegree WMS which is used as default if no other URL is specified in the capabilities/configuration document if required.

Specified by:
getDefaultOnlineResource in interface DeegreeParam
Returns:
URL

getMaxLifeTime

public int getMaxLifeTime()
returns the maximum life time of the internal processes (Threads) of the deegree WMS. default is 3600 seconds. Datasources that are linked to WMS are not targeted by this value.

Specified by:
getMaxLifeTime in interface DeegreeParam
Returns:

getRootDirectory

public java.lang.String getRootDirectory()
returns the root directory of the deegree WMS installation, The directory contains the WEB-INF directory and so the deployment descriptor for publishing the WMS to the servlet engine.

The WEB-INF directory contains a directory named xml that contains all required XML-Documents that are not addressed with its absolut path in the capabilities/configuration document.

Specified by:
getRootDirectory in interface DeegreeParam
Returns:
directory name

getRequestTimeLimit

public int getRequestTimeLimit()
returns the maximum time the perfoming of a request is allowed to take. default is 15 seconds.

Specified by:
getRequestTimeLimit in interface DeegreeParam

getCopyRight

public java.lang.String getCopyRight()
returns a copy right note to draw at the left side of the maps bottom

Specified by:
getCopyRight in interface DeegreeParam

getMapQuality

public float getMapQuality()
returns the quality of the map for none loss-less image formats. the value ranges from 0 (lowest quality) to 1 (best quality)

Default is 0.95

Specified by:
getMapQuality in interface DeegreeParam

getMaxMapHeight

public int getMaxMapHeight()
returns the maximum map height that can be requested. If the GetMap-Parameter 'HEIGHT' extends max map width an exception shall be returned to the client.

Default is 1000

Specified by:
getMaxMapHeight in interface DeegreeParam

getMaxMapWidth

public int getMaxMapWidth()
returns the maximum map width that can be requested. If the GetMap-Parameter 'WIDTH' extends max map width an exception shall be returned to the client.

Default is 1000

Specified by:
getMaxMapWidth in interface DeegreeParam

getGazetteer

public GazetteerParam getGazetteer()
returns the URL where to access the gazetteer service associated with the WMS

Specified by:
getGazetteer in interface DeegreeParam

getSchemaLocation

public java.net.URL getSchemaLocation()
returns the URL where the sxm schema definition of the response to an GetFeatureInfo request is located

Specified by:
getSchemaLocation in interface DeegreeParam

getDTDLocation

public java.net.URL getDTDLocation()
returns the URL where the DTD defining the OGC WMS capabilities is located

Specified by:
getDTDLocation in interface DeegreeParam

getProxy

public Proxy getProxy()
returns the proxy used with the WMS.

Specified by:
getProxy in interface DeegreeParam

exportAsXML

public java.lang.String exportAsXML()
Returns an XML representation of this object.

Specified by:
exportAsXML in interface Marshallable
Returns:
XML-representation of this object