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