@Override
protected IStatus validateParams() {
try {
/* read deploy parameters */
ManifestParseTree manifest = application.getManifest();
ManifestParseTree app = manifest.get("applications").get(0); //$NON-NLS-1$
String appName = null;
if (application.getName() != null)
appName = application.getName();
else
appName = app.get(CFProtocolConstants.V2_KEY_NAME).getValue();
/* extract host information if present */
ManifestParseTree hostNode = app.getOpt(CFProtocolConstants.V2_KEY_HOST);
appHost = (hostNode != null) ? hostNode.getValue() : ManifestUtils.slugify(appName);
if (appHost != null)
return Status.OK_STATUS;
return new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_NOT_FOUND, "Route not found", null);