es.uji.lsi.wcs.client
Class WCSClient

java.lang.Object
  extended byes.uji.lsi.wcs.client.WCSClient

public class WCSClient
extends java.lang.Object

Author:
jaume

Field Summary
 Capabilities capabilities
           
 DescribeCoverageResponse describeCoverageResponse
           
 
Constructor Summary
WCSClient()
           
WCSClient(java.io.File file)
           
WCSClient(java.lang.String text)
          Creates a new instance of WCSclient
 
Method Summary
 void _describeCoverage()
          Deprecated.  
 void _downloadFile(java.net.URL url, java.lang.String targetdir)
          Deprecated.  
 void _getCapabilities()
          Deprecated.  
 boolean _getCoverage()
          Deprecated.  
 void describeCoverage()
          Launches a DescribeCoverage request.
 void describeCoverage(java.lang.String coverage_name)
          Launches a coverage specific DescribeCoverage operation (unused in gvSIG)
 void describeCoverage(java.net.URL url)
          Deprecated.  
 java.io.File downloadFile(java.net.URL url, java.lang.String name)
          Downloads an URL into a temporary file that is removed the next time the tempFileManager class is called, which means the next time gvSIG is launched.
 void getCapabilities()
          Opens the source of the GetCapabilities XML description and loads it into the capabilities field.
 java.io.File getCoverage()
          Launches a GetCoverage exception.
 CoverageOffering getCoverageDescription(java.lang.String nomCobertura)
          Returns a description offered by the DescribeCoverage Devuelve la descripción de la cobertura ofrecida en el DescribeCoverage
 java.lang.String getCoverageFileExtension()
          Unused in gvSIG
 java.lang.String getCoverageFileName()
          Unused in gvSIG
 java.lang.String getCovergeParamString()
          Gets an string containing the currently set parameters for the GetCoverage request.
 java.lang.String getDataPath()
          Unused in gvSIG
 java.lang.String getDescribeCoverageParamString()
          Gets an string containing the currently set parameters for the DescribeCoverage request.
 Capabilities getTheCapabilities()
           
 java.lang.String getWCSException()
          Unused in gvSIG
 java.lang.String getWorkingAddress()
          Gets the current working address.
 boolean isNotAnException(java.io.File file)
          Deprecated.  
 void setBaseDirectory(java.lang.String path)
          Unused in gvSIG
 void setCoverageFileExtension(java.lang.String extension)
          Unused in gvSIG
 void setCoverageFileName(java.lang.String name)
          Unused in gvSIG
 void setDescribeCoverageParams(java.lang.String paramString)
          Sets the DescribeCoverage Operation parameters.
 void setGetCapabilitiesParams(java.lang.String paramString)
          Sets the GetCapabilities Operation parameters.
 void setGetCoverageParams(java.lang.String paramString)
          Sets the GetCoverage Operation parameters.
 java.lang.String toString()
          Typical toString funtion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

capabilities

public Capabilities capabilities

describeCoverageResponse

public DescribeCoverageResponse describeCoverageResponse
Constructor Detail

WCSClient

public WCSClient(java.lang.String text)
Creates a new instance of WCSclient


WCSClient

public WCSClient()

WCSClient

public WCSClient(java.io.File file)
Method Detail

getTheCapabilities

public Capabilities getTheCapabilities()

_getCapabilities

public void _getCapabilities()
Deprecated.  


getCapabilities

public void getCapabilities()
                     throws ServerOutOfOrderException
Opens the source of the GetCapabilities XML description and loads it into the capabilities field.

Throws:
ServerOutOfOrderException

getCoverageDescription

public CoverageOffering getCoverageDescription(java.lang.String nomCobertura)
Returns a description offered by the DescribeCoverage Devuelve la descripción de la cobertura ofrecida en el DescribeCoverage

Parameters:
nomCobertura -
Returns:
es.uji.lsi.XmlWcsParsing.CoverageOffering

describeCoverage

public void describeCoverage(java.net.URL url)
Deprecated.  

Unused Sin uso

Parameters:
url -

describeCoverage

public void describeCoverage()
Launches a DescribeCoverage request.


_describeCoverage

public void _describeCoverage()
Deprecated.  

Unused


describeCoverage

public void describeCoverage(java.lang.String coverage_name)
Launches a coverage specific DescribeCoverage operation (unused in gvSIG)

Parameters:
coverage_name -

_getCoverage

public boolean _getCoverage()
                     throws ServerErrorResponseException
Deprecated.  

Unused

Returns:
Throws:
ServerErrorResponseException

getCoverage

public java.io.File getCoverage()
                         throws ServerErrorResponseException
Launches a GetCoverage exception. It downloads the coverage to a temporary file. If the answer wasn't a coverage but was an error it throws an exception

Returns:
the file downloaded
Throws:
ServerErrorResponseException

getCovergeParamString

public java.lang.String getCovergeParamString()
Gets an string containing the currently set parameters for the GetCoverage request.

Returns:
String

getDescribeCoverageParamString

public java.lang.String getDescribeCoverageParamString()
Gets an string containing the currently set parameters for the DescribeCoverage request.

Returns:
String

setDescribeCoverageParams

public void setDescribeCoverageParams(java.lang.String paramString)
Sets the DescribeCoverage Operation parameters.

Returns:

setGetCapabilitiesParams

public void setGetCapabilitiesParams(java.lang.String paramString)
Sets the GetCapabilities Operation parameters.

Returns:

setGetCoverageParams

public void setGetCoverageParams(java.lang.String paramString)
Sets the GetCoverage Operation parameters.

Returns:

downloadFile

public java.io.File downloadFile(java.net.URL url,
                                 java.lang.String name)
                          throws java.io.IOException,
                                 ServerErrorResponseException,
                                 java.net.ConnectException,
                                 java.net.UnknownHostException
Downloads an URL into a temporary file that is removed the next time the tempFileManager class is called, which means the next time gvSIG is launched.

Parameters:
url -
name -
Returns:
Throws:
java.io.IOException
ServerErrorResponseException
java.net.ConnectException
java.net.UnknownHostException

_downloadFile

public void _downloadFile(java.net.URL url,
                          java.lang.String targetdir)
Deprecated.  

Parameters:
url -
targetdir -

getWorkingAddress

public java.lang.String getWorkingAddress()
Gets the current working address.

Returns:

getDataPath

public java.lang.String getDataPath()
Unused in gvSIG

Returns:

getCoverageFileName

public java.lang.String getCoverageFileName()
Unused in gvSIG


getCoverageFileExtension

public java.lang.String getCoverageFileExtension()
Unused in gvSIG


toString

public java.lang.String toString()
Typical toString funtion.


setBaseDirectory

public void setBaseDirectory(java.lang.String path)
Unused in gvSIG


setCoverageFileName

public void setCoverageFileName(java.lang.String name)
Unused in gvSIG


setCoverageFileExtension

public void setCoverageFileExtension(java.lang.String extension)
Unused in gvSIG


isNotAnException

public boolean isNotAnException(java.io.File file)
Deprecated.  

Its use is unrecommended, use checkExceptionResponse and parseException Su uso no está recomendado, usar checkExceptionResponse y parseException

Parameters:
file -
Returns:

getWCSException

public java.lang.String getWCSException()
Unused in gvSIG