Refactor deploy properties and move legacy CMS exception.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / runtime / CmsDeploymentImpl.java
index d01bc8554c68ea38af30a14913d97af7f5525bc9..2353250c5bf88284aab165b54109122e79c03770 100644 (file)
@@ -3,6 +3,7 @@ package org.argeo.cms.internal.runtime;
 import org.argeo.api.cms.CmsDeployment;
 import org.argeo.api.cms.CmsLog;
 import org.argeo.api.cms.CmsState;
+import org.argeo.cms.CmsDeployProperty;
 import org.osgi.service.http.HttpService;
 
 /** Implementation of a CMS deployment. */
@@ -64,8 +65,8 @@ public class CmsDeploymentImpl implements CmsDeployment {
 
        public void setCmsState(CmsState cmsState) {
                this.cmsState = cmsState;
-               String httpPort = this.cmsState.getDeployProperty("org.osgi.service.http.port");
-               String httpsPort = this.cmsState.getDeployProperty("org.osgi.service.http.port.secure");
+               String httpPort = this.cmsState.getDeployProperty(CmsDeployProperty.HTTP_PORT.getProperty());
+               String httpsPort = this.cmsState.getDeployProperty(CmsDeployProperty.HTTPS_PORT.getProperty());
                httpExpected = httpPort != null || httpsPort != null;
        }