Revision 9305
Added by Jing Tao about 9 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
1988 | 1988 |
NotAuthorized, InvalidRequest, NotImplemented, NotFound { |
1989 | 1989 |
if(formatId == null) { |
1990 | 1990 |
throw new InvalidRequest("2873", "The format type can't be null in the getpackage method."); |
1991 |
} else if(!formatId.getValue().equals("application/bagit")) { |
|
1991 |
} else if(!formatId.getValue().equals("application/bagit-097")) {
|
|
1992 | 1992 |
throw new NotImplemented("", "The format "+formatId.getValue()+" is not supported in the getpackage method"); |
1993 | 1993 |
} |
1994 | 1994 |
String serviceFailureCode = "2871"; |
Also available in: Unified diff
Use the application/bagit-097 to replace application/bagit.