208209210211212213214215216217218
} } // isolate write output try (final Tx tx = app.tx()) { result.commitResponse(gson.get(), response); tx.success(); } } catch (FrameworkException frameworkException) {
631632633634635636637638639640641
800801802803804805806807808809810
// remove Location header if more than one object was // written because it may only contain a single URL result.addHeader("Location", null); } result.commitResponse(gson.get(), response); } tx.success(); }
943944945946947948949950951952953
} } // isolate write output try (final Tx tx = app.tx()) { result.commitResponse(gson.get(), response); tx.success(); } } else {
952953954955956957958959960961962
} else { // isolate write output try (final Tx tx = app.tx()) { result = new RestMethodResult(HttpServletResponse.SC_FORBIDDEN); result.commitResponse(gson.get(), response); tx.success(); } }