]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/support/deploy/HttpdServer.java
Introduce org.argeo.slc.support.simple
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.simple / src / main / java / org / argeo / slc / support / deploy / HttpdServer.java
1 package org.argeo.slc.support.deploy;
2
3 import java.io.IOException;
4 import java.net.URL;
5
6 import org.argeo.slc.core.SlcException;
7 import org.argeo.slc.core.build.Distribution;
8 import org.argeo.slc.core.deploy.DeploymentData;
9 import org.argeo.slc.core.deploy.TargetData;
10
11 public class HttpdServer implements WebServer {
12 private HttpdServerTargetData targetData;
13 private HttpdServerDeploymentData deploymentData;
14
15 public URL getBaseUrl() {
16 try {
17 return new URL("http://localhost:" + targetData.getPort());
18 } catch (IOException e) {
19 throw new SlcException("Cannot get url for Httpd server "
20 + getDeployedSystemId(), e);
21 }
22 }
23
24 public String getDeployedSystemId() {
25 // TODO Auto-generated method stub
26 return null;
27 }
28
29 public Distribution getDistribution() {
30 // TODO Auto-generated method stub
31 return null;
32 }
33
34 public DeploymentData getDeploymentData() {
35 return deploymentData;
36 }
37
38 public TargetData getTargetData() {
39 return targetData;
40 }
41
42 public void setTargetData(TargetData targetData) {
43 this.targetData = (HttpdServerTargetData)targetData;
44 }
45
46 public void setDeploymentData(DeploymentData deploymentData) {
47 this.deploymentData = (HttpdServerDeploymentData)deploymentData;
48 }
49
50 }