mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
reformat to DSpace style guidelines.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* The contents of this file are subject to the license and copyright
|
* The contents of this file are subject to the license and copyright
|
||||||
* detailed in the LICENSE and NOTICE files at the root of the source
|
* detailed in the LICENSE and NOTICE files at the root of the source
|
||||||
* tree and available online at
|
* tree and available online at
|
||||||
*
|
* <p>
|
||||||
* http://www.dspace.org/license/
|
* http://www.dspace.org/license/
|
||||||
*/
|
*/
|
||||||
package org.dspace.app.rest;
|
package org.dspace.app.rest;
|
||||||
@@ -86,18 +86,14 @@ public class IdentifierRestController implements InitializingBean {
|
|||||||
.slash(dsor.getId()).toUri();
|
.slash(dsor.getId()).toUri();
|
||||||
response.setStatus(HttpServletResponse.SC_FOUND);
|
response.setStatus(HttpServletResponse.SC_FOUND);
|
||||||
response.sendRedirect(link.toString());
|
response.sendRedirect(link.toString());
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
response.setStatus(HttpServletResponse.SC_NOT_FOUND);
|
response.setStatus(HttpServletResponse.SC_NOT_FOUND);
|
||||||
}
|
}
|
||||||
}
|
} catch (IdentifierNotFoundException e) {
|
||||||
catch (IdentifierNotFoundException e ) {
|
|
||||||
response.setStatus(HttpServletResponse.SC_NOT_FOUND);
|
response.setStatus(HttpServletResponse.SC_NOT_FOUND);
|
||||||
}
|
} catch (IdentifierNotResolvableException e) {
|
||||||
catch (IdentifierNotResolvableException e) {
|
|
||||||
response.setStatus(HttpServletResponse.SC_NOT_FOUND);
|
response.setStatus(HttpServletResponse.SC_NOT_FOUND);
|
||||||
}
|
} finally {
|
||||||
finally {
|
|
||||||
log.info("DBG " + "aborting context");
|
log.info("DBG " + "aborting context");
|
||||||
context.abort();
|
context.abort();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user