public abstract class WCSProtocolHandler extends OGCProtocolHandler
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
encoding
Encoding used to parse different xml documents.
|
protected java.util.Hashtable |
layerPool |
protected WCSServiceInformation |
serviceInfo
WCS metadata
|
downloader, host, name, port, version
Constructor and Description |
---|
WCSProtocolHandler() |
Modifier and Type | Method and Description |
---|---|
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,
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.
|
java.io.File |
getCoverage(WCSStatus status,
ICancellable cancel)
Send a GetCoverage request using the settings passed in the status.
|
java.net.URL |
getCoverageURL(WCSStatus status,
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) |
addOperationByAttribute, fileToBytes, getHost, getName, getPort, getSymbol, getVersion, parseCapabilities, parseHTTPTag, parserDcpType, setName, setPort, setVersion
protected java.lang.String encoding
protected java.util.Hashtable layerPool
protected WCSServiceInformation serviceInfo
public void setHost(java.lang.String host)
setHost
in class OGCProtocolHandler
host
- 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(java.io.File f)
public void describeCoverage(WCSStatus status, boolean override, ICancellable cancel)
override
- public java.io.File getCoverage(WCSStatus status, ICancellable cancel) throws ServerErrorException, WCSException
ServerErrorException
WCSException
public java.net.URL getCoverageURL(WCSStatus status, ICancellable cancel) throws ServerErrorException
ServerErrorException
public java.lang.String getExceptionMessage(java.io.File f) throws java.io.IOException
file3
- java.io.IOException
public static java.lang.String buildCapabilitiesSuitableVersionRequest(java.lang.String _host, java.lang.String _version)
public java.util.ArrayList getFormats()
public java.util.Hashtable getLayers()
public abstract WCSDescribeCoverageRequest createDescribeCoverageRequest(WCSStatus status)
public abstract WCSGetCoverageRequest createGetCoverageRequest(WCSStatus status)
public OGCServiceInformation getServiceInformation()
getServiceInformation
in class OGCProtocolHandler