com.moximedia.ows.wms.capabilities
Class Service

java.lang.Object
  extended bycom.moximedia.ows.wms.capabilities.Service
All Implemented Interfaces:
java.io.Serializable

public class Service
extends java.lang.Object
implements java.io.Serializable

Implementation of WMS service. Used when parsing WMS capabilities responses to save the useful properties about the servioce contained in the capabilities response.

Author:
Doug Cates - www.moximedia.com
See Also:
Serialized Form

Field Summary
 java.lang.String description
           
 java.util.HashSet exceptionFormats
           
 java.lang.String getFeatureHref
           
 java.util.HashSet getFeatureInfoFormats
           
 java.util.HashSet getMapFormats
           
 java.lang.String getMapHref
           
 java.util.ArrayList layers
           
 java.lang.String name
           
static int SERVICE_TYPE_ARCIMS_BETA
           
static int SERVICE_TYPE_ARCIMS_ESRIMAP
           
static int SERVICE_TYPE_ARCIMS_WSIT
           
static int SERVICE_TYPE_CARIS
           
static int SERVICE_TYPE_CUBEWERX
           
static int SERVICE_TYPE_MAPSERVER
           
static int SERVICE_TYPE_NASA
           
static int SERVICE_TYPE_UNKNOWN
           
 int serviceType
           
 java.lang.String title
           
 java.lang.String version
           
 java.lang.String xml
           
 
Constructor Summary
Service(java.lang.String url)
          Creates a new instance of Service.
 
Method Summary
 void addExceptionFormat(java.lang.String format)
           
 void addGetFeatureInfoFormat(java.lang.String format)
           
 void addGetMapFormat(java.lang.String format)
           
 void addLayer(Layer layer)
           
 java.lang.String getBestInfoExceptionFormat()
           
 java.lang.String getBestInfoFormat()
           
 java.lang.String getBestMapExceptionFormat()
           
 java.lang.String getBestMapFormat()
           
 java.lang.String getParser()
          Gets the name of the class used for parsing GetFeatureInfo responses from this service, if known, otherwise returns an empty string.
 int getServiceType()
           
 void setXmlAttribute(java.lang.String path, java.lang.String tag, java.lang.String name, java.lang.String value)
           
 java.lang.String toString()
           
 java.lang.String toWMSLayerElements()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SERVICE_TYPE_UNKNOWN

public static int SERVICE_TYPE_UNKNOWN

SERVICE_TYPE_MAPSERVER

public static int SERVICE_TYPE_MAPSERVER

SERVICE_TYPE_CUBEWERX

public static int SERVICE_TYPE_CUBEWERX

SERVICE_TYPE_ARCIMS_ESRIMAP

public static int SERVICE_TYPE_ARCIMS_ESRIMAP

SERVICE_TYPE_ARCIMS_BETA

public static int SERVICE_TYPE_ARCIMS_BETA

SERVICE_TYPE_ARCIMS_WSIT

public static int SERVICE_TYPE_ARCIMS_WSIT

SERVICE_TYPE_CARIS

public static int SERVICE_TYPE_CARIS

SERVICE_TYPE_NASA

public static int SERVICE_TYPE_NASA

serviceType

public int serviceType

description

public java.lang.String description

version

public java.lang.String version

name

public java.lang.String name

title

public java.lang.String title

getMapHref

public java.lang.String getMapHref

getFeatureHref

public java.lang.String getFeatureHref

xml

public java.lang.String xml

layers

public java.util.ArrayList layers

getMapFormats

public java.util.HashSet getMapFormats

getFeatureInfoFormats

public java.util.HashSet getFeatureInfoFormats

exceptionFormats

public java.util.HashSet exceptionFormats
Constructor Detail

Service

public Service(java.lang.String url)
Creates a new instance of Service.

Parameters:
url - The GetCapabilities URL.
Method Detail

addExceptionFormat

public void addExceptionFormat(java.lang.String format)

addGetMapFormat

public void addGetMapFormat(java.lang.String format)

addGetFeatureInfoFormat

public void addGetFeatureInfoFormat(java.lang.String format)

addLayer

public void addLayer(Layer layer)

getServiceType

public int getServiceType()

setXmlAttribute

public void setXmlAttribute(java.lang.String path,
                            java.lang.String tag,
                            java.lang.String name,
                            java.lang.String value)

toString

public java.lang.String toString()

toWMSLayerElements

public java.lang.String toWMSLayerElements()

getBestMapFormat

public java.lang.String getBestMapFormat()

getBestMapExceptionFormat

public java.lang.String getBestMapExceptionFormat()

getBestInfoFormat

public java.lang.String getBestInfoFormat()

getBestInfoExceptionFormat

public java.lang.String getBestInfoExceptionFormat()

getParser

public java.lang.String getParser()
Gets the name of the class used for parsing GetFeatureInfo responses from this service, if known, otherwise returns an empty string.

Returns:
The name of the parsing class.


Internet Mapping Framework for OpenGIS Java Object Model API (v1.3.007)
Copyright © 2005 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.