org.gvsig.remoteclient.wcs
Class WCSProtocolHandler

java.lang.Object
  extended by org.gvsig.remoteclient.ogc.OGCProtocolHandler
      extended by org.gvsig.remoteclient.wcs.WCSProtocolHandler
Direct Known Subclasses:
WCSProtocolHandler1_0_0

public abstract class WCSProtocolHandler
extends OGCProtocolHandler

Author:
jaume

Field Summary
protected  java.lang.String encoding
          Encoding used to parse different xml documents.
protected  java.util.Hashtable layerPool
           
protected  WCSServiceInformation serviceInfo
          WCS metadata
 
Fields inherited from class org.gvsig.remoteclient.ogc.OGCProtocolHandler
downloader, host, name, port, version
 
Constructor Summary
WCSProtocolHandler()
           
 
Method Summary
static java.lang.String buildCapabilitiesSuitableVersionRequest(java.lang.String _host, java.lang.String _version)
          Builds the GetCapabilitiesRequest according to the OGC WCS Specifications without a VERSION, to get the highest version than a WCS supports.
abstract  WCSDescribeCoverageRequest createDescribeCoverageRequest(WCSStatus status)
           
abstract  WCSGetCoverageRequest createGetCoverageRequest(WCSStatus status)
           
 void describeCoverage(WCSStatus status, boolean override, org.gvsig.compat.net.ICancellable cancel)
          Send a DescribeCoverage request using the settings passed in the status argument.
 void getCapabilities(WCSStatus status, boolean override, org.gvsig.compat.net.ICancellable cancel)
           Builds a GetCapabilities request that is sent to the WCS the response will be parse to extract the data needed by the WCS client.
 java.io.File getCoverage(WCSStatus status, org.gvsig.compat.net.ICancellable cancel)
          Send a GetCoverage request using the settings passed in the status.
 java.net.URL getCoverageURL(WCSStatus status, org.gvsig.compat.net.ICancellable cancel)
           
 java.lang.String getExceptionMessage(java.io.File f)
          Returns the exception message if the file is a XML instead of a image.
 java.util.ArrayList getFormats()
           
 java.util.Hashtable getLayers()
           
 OGCServiceInformation getServiceInformation()
           
abstract  boolean parseDescribeCoverage(java.io.File f)
          parses the data retrieved by the DescribeCoverage XML document
 void setHost(java.lang.String host)
           
 
Methods inherited from class org.gvsig.remoteclient.ogc.OGCProtocolHandler
addOperationByAttribute, fileToBytes, getHost, getName, getPort, getSymbol, getVersion, parseCapabilities, parseHTTPTag, parserDcpType, setName, setPort, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

encoding

protected java.lang.String encoding
Encoding used to parse different xml documents.


layerPool

protected java.util.Hashtable layerPool

serviceInfo

protected WCSServiceInformation serviceInfo
WCS metadata

Constructor Detail

WCSProtocolHandler

public WCSProtocolHandler()
Method Detail

setHost

public void setHost(java.lang.String host)
Overrides:
setHost in class OGCProtocolHandler
Parameters:
host - The host to set.

getCapabilities

public void getCapabilities(WCSStatus status,
                            boolean override,
                            org.gvsig.compat.net.ICancellable cancel)

Builds a GetCapabilities request that is sent to the WCS the response will be parse to extract the data needed by the WCS client.

Parameters:
override, - if true the cache is ignored

parseDescribeCoverage

public abstract boolean parseDescribeCoverage(java.io.File f)
parses the data retrieved by the DescribeCoverage XML document


describeCoverage

public void describeCoverage(WCSStatus status,
                             boolean override,
                             org.gvsig.compat.net.ICancellable cancel)
Send a DescribeCoverage request using the settings passed in the status argument. If status is null, then default settings are used.

Parameters:
override -

getCoverage

public java.io.File getCoverage(WCSStatus status,
                                org.gvsig.compat.net.ICancellable cancel)
                         throws ServerErrorException,
                                WCSException
Send a GetCoverage request using the settings passed in the status.

Returns:
String
Throws:
ServerErrorException
WCSException

getCoverageURL

public java.net.URL getCoverageURL(WCSStatus status,
                                   org.gvsig.compat.net.ICancellable cancel)
                            throws ServerErrorException,
                                   WMSException
Throws:
ServerErrorException
WMSException

getExceptionMessage

public java.lang.String getExceptionMessage(java.io.File f)
                                     throws java.io.IOException
Returns the exception message if the file is a XML instead of a image.

Parameters:
file3 -
Returns:
Throws:
java.io.IOException

buildCapabilitiesSuitableVersionRequest

public static java.lang.String buildCapabilitiesSuitableVersionRequest(java.lang.String _host,
                                                                       java.lang.String _version)
Builds the GetCapabilitiesRequest according to the OGC WCS Specifications without a VERSION, to get the highest version than a WCS supports.


getFormats

public java.util.ArrayList getFormats()

getLayers

public java.util.Hashtable getLayers()

createDescribeCoverageRequest

public abstract WCSDescribeCoverageRequest createDescribeCoverageRequest(WCSStatus status)

createGetCoverageRequest

public abstract WCSGetCoverageRequest createGetCoverageRequest(WCSStatus status)

getServiceInformation

public OGCServiceInformation getServiceInformation()
Specified by:
getServiceInformation in class OGCProtocolHandler


Copyright © 2004-2013 gvSIG. All Rights Reserved.