public class AggregationParams
extends java.lang.Object
Constructor and Description |
---|
AggregationParams(java.util.Map<java.lang.String,java.lang.String[]> queryParameters)
If the parameters do not contain any instances of 'file', that is an
error given that this code will only be used with the /netcdf3 version
of the service.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArrayCE(int i)
For the ith instance of 'file' build the matching CE to send to
the BES.
|
java.lang.String |
getFilename(int i)
Return the name of the granule/file associated with the ith
instance of the 'file' parameter.
|
int |
getNumberOfFiles()
/**
Return the number of files/granules in the current set of query
parameters.
|
java.lang.String |
getTableCE(int i)
For the ith instance of 'file' build the matching CE to send to
the BES when the caller has requested that the values be returned
in a single table of CSV values
|
public AggregationParams(java.util.Map<java.lang.String,java.lang.String[]> queryParameters) throws java.lang.Exception
queryParameters
- The parameters as extracted from the HTTP request
object.java.lang.Exception
- If 'file' is missing.public int getNumberOfFiles()
public java.lang.String getFilename(int i)
i
- The instance numberpublic java.lang.String getArrayCE(int i) throws java.lang.Exception
i
- Build the CE for the ith file/granulejava.lang.Exception
public java.lang.String getTableCE(int i) throws java.lang.Exception
i
- Build the CE for the ith file/granulejava.lang.Exception
getArrayCE(int)