public class RangeSubsettingExtension extends java.lang.Object implements Extension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RANGESUBSET_KVP_PARAMNAME |
static java.lang.String |
RANGESUBSET_KVP_RANGE_SEPARATOR |
static java.lang.String |
RANGESUBSET_REST_PARAMNAME |
static java.lang.String |
RANGESUBSET_REST_RANGE_SEPARATOR |
Constructor and Description |
---|
RangeSubsettingExtension() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExtensionIdentifier()
Implementation of the Extension requirements
|
void |
handle(GetCoverageRequest request,
GetCoverageMetadata coverageMeta)
Handles the request adding the needed components for it to be properly
parsed
|
static void |
parseGetCoverageKVPRequest(java.util.Map<java.lang.String,java.util.List<java.lang.String>> params,
GetCoverageRequest request)
Helper method to parse the rangesubsets parameters for this request It
recognizes the following formats: band | band1:bandN | band1, band2,
bandX:bandY
|
static void |
parseGetCoverageRequest(java.util.List<java.lang.String> rangeParams,
java.lang.String rangeSep,
GetCoverageRequest request)
Helper method to parse range subsets that contains common code for both
KVP and REST encodings
|
static void |
parseGetCoverageRESTRequest(RESTUrl rUrl,
GetCoverageRequest request)
Helper method to parse the range subsets parameters for a REST encoded
request
|
static void |
parseGetCoverageXMLRequest(GetCoverageRequest gcRequest,
nu.xom.Element rangeElem)
Helper method to parse a RangeItem XML element and adds the parsed
information to the GetCoverage Request
|
static java.lang.String |
processWCPSRequest(java.lang.String coverage,
RangeSubset rs)
Processes a wcps query to add the range subsetting parameters.
|
public static final java.lang.String RANGESUBSET_KVP_PARAMNAME
public static final java.lang.String RANGESUBSET_KVP_RANGE_SEPARATOR
public static final java.lang.String RANGESUBSET_REST_PARAMNAME
public static final java.lang.String RANGESUBSET_REST_RANGE_SEPARATOR
public java.lang.String getExtensionIdentifier()
getExtensionIdentifier
in interface Extension
public void handle(GetCoverageRequest request, GetCoverageMetadata coverageMeta) throws WCSException
request
- the request objectcoverageMeta
- metadata of the coverageWCSException
public static java.lang.String processWCPSRequest(java.lang.String coverage, RangeSubset rs) throws WCSException
coverage
- the coverage identifierrs
- the range subset parameter of the requestWCSException
public static void parseGetCoverageXMLRequest(GetCoverageRequest gcRequest, nu.xom.Element rangeElem) throws WCSException
gcRequest
- - the request to add the parsed inforangeElem
- - the XML element to be parsedWCSException
public static void parseGetCoverageKVPRequest(java.util.Map<java.lang.String,java.util.List<java.lang.String>> params, GetCoverageRequest request) throws WCSException
params
- - the GET parameters of this requestrequest
- - the coverage request to which to add the parsed
informationWCSException
public static void parseGetCoverageRESTRequest(RESTUrl rUrl, GetCoverageRequest request) throws WCSException
rUrl
- request
- WCSException
public static void parseGetCoverageRequest(java.util.List<java.lang.String> rangeParams, java.lang.String rangeSep, GetCoverageRequest request) throws WCSException
rangeParams
- rangeSep
- request
- WCSException