261262263264265266267
} 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(); }
298299300301302303304
// e.printStackTrace(); error = "Failed to edit the route: " + e.getMessage(); } // lets re-render the form return Response.ok(new Viewable("edit", this)).build(); }
323324325326327328329
149150151152153154155156
} else if (language.equals(RouteResource.LANGUAGE_GROOVY)) { return parseGroovy(body); } error = "Not supported language!"; return Response.ok(new Viewable("edit", this)).build(); }
191192193194195196197
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(); }
221222223224225226227
} catch (Exception e) { // e.printStackTrace(); error = "Failed to edit the route: " + e.getMessage(); } // lets re-render the form return Response.ok(new Viewable("create", this)).build(); }
203204205206207208209
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(); }
227228229230231232233
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(); }
145146147148149150151
} else if (language.equals(RouteResource.LANGUAGE_XML)) { return parseXml(body); } error = "Not supported language!"; return Response.ok(new Viewable("edit", this)).build(); }
186187188189190191192