Revision 6799
Added by Chris Jones about 13 years ago
src/edu/ucsb/nceas/metacat/restservice/MNResourceHandler.java | ||
---|---|---|
868 | 868 |
String name = (String) paramlist.nextElement(); |
869 | 869 |
String[] value = (String[])request.getParameterValues(name); |
870 | 870 |
|
871 |
if (name.equals("startTime") && value != null)
|
|
871 |
if (name.equals("fromDate") && value != null)
|
|
872 | 872 |
{ |
873 | 873 |
try |
874 | 874 |
{ |
... | ... | |
877 | 877 |
//startTime = parseDateAndConvertToGMT(value[0]); |
878 | 878 |
} |
879 | 879 |
catch(Exception e) |
880 |
{ //if we can't parse it, just don't use the startTime param
|
|
881 |
logMetacat.warn("Could not parse startTime: " + value[0]);
|
|
880 |
{ //if we can't parse it, just don't use the fromDate param
|
|
881 |
logMetacat.warn("Could not parse fromDate: " + value[0]);
|
|
882 | 882 |
startTime = null; |
883 | 883 |
} |
884 | 884 |
} |
885 |
else if(name.equals("endTime") && value != null)
|
|
885 |
else if(name.equals("toDate") && value != null)
|
|
886 | 886 |
{ |
887 | 887 |
try |
888 | 888 |
{ |
889 |
//endTime = dateFormat.parse(value[0]); |
|
890 | 889 |
endTime = DateTimeMarshaller.deserializeDateToUTC(value[0]); |
891 |
//endTime = parseDateAndConvertToGMT(value[0]); |
|
892 | 890 |
} |
893 | 891 |
catch(Exception e) |
894 |
{ //if we can't parse it, just don't use the endTime param
|
|
895 |
logMetacat.warn("Could not parse endTime: " + value[0]);
|
|
892 |
{ //if we can't parse it, just don't use the toDate param
|
|
893 |
logMetacat.warn("Could not parse toDate: " + value[0]);
|
|
896 | 894 |
endTime = null; |
897 | 895 |
} |
898 | 896 |
} |
Also available in: Unified diff
Update the parameter names expected for listObjects() to reflect the MN API changes in the architecture docs.