@Override protected IStatus validateParams() { try { /* read deploy parameters */ ManifestParseTree manifest = app.getManifest(); ManifestParseTree manifestApp = manifest.get("applications").get(0); // $NON-NLS-1$ if (app.getName() != null) { appName = app.getName(); return Status.OK_STATUS; } appName = manifestApp.get(CFProtocolConstants.V2_KEY_NAME).getValue(); return Status.OK_STATUS; } catch (InvalidAccessException e) { return new ServerStatus( IStatus.ERROR, HttpServletResponse.SC_BAD_REQUEST, e.getMessage(), null); } }
public UnmapRouteCommand(Target target, App app, Route route) { super(target); String[] bindings = {route.getGuid(), app.getName(), app.getGuid()}; this.commandName = NLS.bind("Unmap route (guid: {0}) from application {1} (guid: {2})", bindings); this.app = app; this.route = route; }