223224225226227228229
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(); }
259260261262263264265
} 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(); }
296297298299300301302
// e.printStackTrace(); error = "Failed to edit the route: " + e.getMessage(); } // lets re-render the form return Response.ok(new Viewable("edit", this)).build(); }
320321322323324325326
203204205206207208209210
return parseRuby(body); } else if (language.equals(LANGUAGE_SCALA)) { return parseScala(body); } error = "Not supproted language!"; return Response.ok(new Viewable("edit", this)).build(); }
228229230231232233234
261262263264265266267
298299300301302303304
323324325326327328329
147148149150151152153154
} else if (language.equals(RouteResource.LANGUAGE_GROOVY)) { return parseGroovy(body); } error = "Not supproted language!"; return Response.ok(new Viewable("edit", this)).build(); }