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