throws WcsException
{
if ( time == null || time.equals( ""))
return null;
DateRange dateRange;
try
{
if ( time.indexOf( ",") != -1 )
{
log.error( "parseTime(): Unsupported time parameter (list) <" + time + ">.");
throw new WcsException( WcsException.Code.InvalidParameterValue, "TIME",
"Not currently supporting time list." );
//String[] timeList = time.split( "," );
//dateRange = new DateRange( date, date, null, null );
}
else if ( time.indexOf( "/") != -1 )
{
String[] timeRange = time.split( "/" );
if ( timeRange.length != 2)
{
log.error( "parseTime(): Unsupported time parameter (time range with resolution) <" + time + ">.");
throw new WcsException( WcsException.Code.InvalidParameterValue, "TIME", "Not currently supporting time range with resolution.");
}
dateRange = new DateRange( new DateType( timeRange[0], null, null ),
new DateType( timeRange[1], null, null ), null, null );
}
else
{
DateType date = new DateType( time, null, null );
dateRange = new DateRange( date, date, null, null );
this.isSingleTimeRequest = true;
}
}
catch ( ParseException e )
{