org.deegree_impl.services.wts.configuration
Class WTSConfiguration_Impl

java.lang.Object
  extended byorg.deegree_impl.services.wts.configuration.WTSConfiguration_Impl
All Implemented Interfaces:
WTSConfiguration

public class WTSConfiguration_Impl
extends java.lang.Object
implements WTSConfiguration

-----------------------------------------------------------------------

Version:
$Revision: 1.10 $ $Date: 2004/03/04 07:36:01 $
Author:
Andreas Poth

Field Summary
private  java.util.HashMap backgrounds
           
private static WTSConfiguration conf
           
private  java.util.HashMap featureTextures
           
private  java.util.HashMap formatNames
           
private  java.util.HashMap responsibleServices
           
private  java.util.HashMap sourceTypes
           
private  java.util.HashMap tileHeight
           
private  java.util.HashMap tileWidth
           
 
Fields inherited from interface org.deegree.services.wts.configuration.WTSConfiguration
LOCALWCS, LOCALWFS, LOCALWMS, REMOTEWCS, REMOTEWFS, REMOTEWMS
 
Constructor Summary
protected WTSConfiguration_Impl(java.util.HashMap sourceTypes, java.util.HashMap formatNames, java.util.HashMap featureTextures, java.util.HashMap responsibleServices, java.util.HashMap backgrounds)
          Creates a new instance of WTSConfiguration_Impl
 
Method Summary
 java.awt.image.BufferedImage getBackground(java.lang.String name)
          returns the background image associated to the named background
 java.lang.String getDEMSource(java.lang.String demName)
          returns the source for submitted DEM.
 java.lang.String getFeatureSource(java.lang.String textureName)
          returns the source for submitted feature.
 java.awt.image.BufferedImage getFeatureTexture(java.lang.String featureId)
          returns the texture of a feature as BufferedImage
 java.lang.String getFormatName(java.lang.String layer)
          returns the name of the format the submitted layer shall be requested from a wcs, wms, of wfs
static WTSConfiguration getInstance()
          singelton: returns the instance of the WTSConfiguration
 OGCWebService getResponsibleService(java.lang.String layer)
          returns the service that is responsible for handling the submitted layer
 int getSourceType(java.lang.String source)
          returns the type of the submitted source. possible values are: LOCALWCS LOCALWFS LOCALWMS REMOTEWCS REMOTEWFS REMOTEWMS
 java.lang.String getTextureSource(java.lang.String textureName)
          returns the source for submitted texture.
 int getTileHeight(java.lang.String layer)
          returns the height of the tiles in pixels the requested footprint is split of when data are requested from a wcs or a wms
 int getTileWidth(java.lang.String layer)
          returns the width of the tiles in pixels the requested footprint is split of when data are requested from a wcs or a wms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceTypes

private java.util.HashMap sourceTypes

formatNames

private java.util.HashMap formatNames

responsibleServices

private java.util.HashMap responsibleServices

featureTextures

private java.util.HashMap featureTextures

tileWidth

private java.util.HashMap tileWidth

tileHeight

private java.util.HashMap tileHeight

backgrounds

private java.util.HashMap backgrounds

conf

private static WTSConfiguration conf
Constructor Detail

WTSConfiguration_Impl

protected WTSConfiguration_Impl(java.util.HashMap sourceTypes,
                                java.util.HashMap formatNames,
                                java.util.HashMap featureTextures,
                                java.util.HashMap responsibleServices,
                                java.util.HashMap backgrounds)
Creates a new instance of WTSConfiguration_Impl

Method Detail

getInstance

public static final WTSConfiguration getInstance()
                                          throws ConfigurationException
singelton: returns the instance of the WTSConfiguration

Throws:
ConfigurationException

getDEMSource

public java.lang.String getDEMSource(java.lang.String demName)
returns the source for submitted DEM. Using the method getSourceType>/tt> it can be determined if the source is a:
  • LOCALWCS
  • LOCALWFS
  • REMOTEWCS
  • REMOTEWFS

Specified by:
getDEMSource in interface WTSConfiguration

getFeatureSource

public java.lang.String getFeatureSource(java.lang.String textureName)
returns the source for submitted feature. Using the method getSourceType>/tt> it can be determined if the source is a:
  • LOCALWFS
  • REMOTEWFS

Specified by:
getFeatureSource in interface WTSConfiguration

getTextureSource

public java.lang.String getTextureSource(java.lang.String textureName)
returns the source for submitted texture. Using the method getSourceType>/tt> it can be determined if the source is a:
  • LOCALWCS
  • LOCALWMS
  • REMOTEWCS
  • REMOTEWMS

Specified by:
getTextureSource in interface WTSConfiguration

getSourceType

public int getSourceType(java.lang.String source)
returns the type of the submitted source. possible values are:
  • LOCALWCS
  • LOCALWFS
  • LOCALWMS
  • REMOTEWCS
  • REMOTEWFS
  • REMOTEWMS

Specified by:
getSourceType in interface WTSConfiguration

getTileHeight

public int getTileHeight(java.lang.String layer)
returns the height of the tiles in pixels the requested footprint is split of when data are requested from a wcs or a wms

Specified by:
getTileHeight in interface WTSConfiguration

getTileWidth

public int getTileWidth(java.lang.String layer)
returns the width of the tiles in pixels the requested footprint is split of when data are requested from a wcs or a wms

Specified by:
getTileWidth in interface WTSConfiguration

getFormatName

public java.lang.String getFormatName(java.lang.String layer)
returns the name of the format the submitted layer shall be requested from a wcs, wms, of wfs

Specified by:
getFormatName in interface WTSConfiguration

getResponsibleService

public OGCWebService getResponsibleService(java.lang.String layer)
returns the service that is responsible for handling the submitted layer

Specified by:
getResponsibleService in interface WTSConfiguration

getFeatureTexture

public java.awt.image.BufferedImage getFeatureTexture(java.lang.String featureId)
returns the texture of a feature as BufferedImage

Specified by:
getFeatureTexture in interface WTSConfiguration
Parameters:
featureId - id of the feature (will be converted into uppercase)
Returns:

getBackground

public java.awt.image.BufferedImage getBackground(java.lang.String name)
returns the background image associated to the named background

Specified by:
getBackground in interface WTSConfiguration
Parameters:
name - name of the background
Returns:
background image or null if background isn't known