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