public abstract class WCSProtocolHandler extends OGCProtocolHandler
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
encoding
Encoding used to parse different xml documents. 
 | 
protected Hashtable | 
layerPool  | 
protected WCSServiceInformation | 
serviceInfo
WCS metadata 
 | 
downloader, host, name, port, version| Constructor and Description | 
|---|
WCSProtocolHandler()  | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
buildCapabilitiesSuitableVersionRequest(String _host,
                                       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,
                ICancellable cancel)
Send a DescribeCoverage request using the settings passed in the status argument. 
 | 
void | 
getCapabilities(WCSStatus status,
               boolean override,
               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. 
 | 
File | 
getCoverage(WCSStatus status,
           ICancellable cancel)
Send a GetCoverage request using the settings passed in the status. 
 | 
URL | 
getCoverageURL(WCSStatus status,
              ICancellable cancel)  | 
String | 
getExceptionMessage(File f)
Returns the exception message if the file is a XML instead of a image. 
 | 
ArrayList | 
getFormats()  | 
Hashtable | 
getLayers()  | 
OGCServiceInformation | 
getServiceInformation()  | 
abstract boolean | 
parseDescribeCoverage(File f)
parses the data retrieved by the DescribeCoverage XML document 
 | 
void | 
setHost(String host)  | 
addOperationByAttribute, fileToBytes, getHost, getName, getPort, getSymbol, getVersion, parseCapabilities, parseHTTPTag, parserDcpType, setName, setPort, setVersionprotected String encoding
protected Hashtable layerPool
protected WCSServiceInformation serviceInfo
public void setHost(String host)
setHost in class OGCProtocolHandlerhost - The host to set.public void getCapabilities(WCSStatus status, boolean override, 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.
override, - if true the cache is ignoredpublic abstract boolean parseDescribeCoverage(File f)
public void describeCoverage(WCSStatus status, boolean override, ICancellable cancel)
override - public File getCoverage(WCSStatus status, ICancellable cancel) throws ServerErrorException, WCSException
ServerErrorExceptionWCSExceptionpublic URL getCoverageURL(WCSStatus status, ICancellable cancel) throws ServerErrorException
ServerErrorExceptionpublic String getExceptionMessage(File f) throws IOException
file3 - IOExceptionpublic static String buildCapabilitiesSuitableVersionRequest(String _host, String _version)
public ArrayList getFormats()
public Hashtable getLayers()
public abstract WCSDescribeCoverageRequest createDescribeCoverageRequest(WCSStatus status)
public abstract WCSGetCoverageRequest createGetCoverageRequest(WCSStatus status)
public OGCServiceInformation getServiceInformation()
getServiceInformation in class OGCProtocolHandler