Revision 5926
Added by berkley almost 14 years ago
src/edu/ucsb/nceas/metacat/restservice/ResourceHandler.java | ||
---|---|---|
431 | 431 |
//handle checksum requests |
432 | 432 |
if(httpVerb == GET) |
433 | 433 |
{ |
434 |
String guid = null; |
|
435 | 434 |
String checksumAlgorithm = "MD5"; |
436 | 435 |
|
437 |
try |
|
438 |
{ |
|
439 |
guid = params.get("id")[0]; |
|
440 |
} |
|
441 |
catch(Exception e) |
|
442 |
{ |
|
443 |
throw new InvalidRequest("1402", "Incorrect parameters passed to getChecksum"); |
|
444 |
} |
|
436 |
String guid = request.getPathInfo(); |
|
437 |
if (guid != null && guid.length() > 1) |
|
438 |
guid = request.getPathInfo().substring(1); //trim the slash |
|
445 | 439 |
|
446 | 440 |
Identifier guidid = new Identifier(); |
447 | 441 |
guidid.setValue(guid); |
Also available in: Unified diff
put the pid in the info section of the url