305306307308309310311
// e.printStackTrace(); error = "Failed to edit the route: " + e.getMessage(); } // lets re-render the form return Response.ok(new Viewable("edit", this)).build(); }
329330331332333334335
} catch (Exception e) { // e.printStackTrace(); error = "Failed to edit the route: " + e.getMessage(); } // lets re-render the form return Response.ok(new Viewable("edit", this)).build(); }
141142143144145146147148
error = "Could not find a component to resolve that URI"; System.out.println("Failed to create new endpoint!"); // lets re-render the form return Response.ok(new Viewable("index", this)).build(); } }
200201202203204205206
error = "No Route submitted!"; } else if (language.equals(LANGUAGE_XML)) { return parseXml(body); } error = "Not supproted language!"; return Response.ok(new Viewable("edit", this)).build(); }
224225226227228229230
error = "Failed to parse XML: " + e.getMessage(); } catch (Exception e) { error = "Failed to install route: " + e.getMessage(); } // lets re-render the form return Response.ok(new Viewable("edit", this)).build(); }
143144145146147148149
} else if (language.equals(RouteResource.LANGUAGE_XML)) { return parseXml(body); } error = "Not supported language!"; return Response.ok(new Viewable("edit", this)).build(); }
184185186187188189190
error = "Failed to parse XML: " + e.getMessage(); } catch (Exception e) { error = "Failed to install route: " + e.getMessage(); } // lets re-render the form return Response.ok(new Viewable("create", this)).build(); }
140141142143144145146147
error = "Could not find a component to resolve that URI"; LOG.info("Failed to create new endpoint!"); // lets re-render the form return Response.ok(new Viewable("index", this)).build(); } }