1 package org
.argeo
.slc
.support
.deploy
;
3 import java
.io
.BufferedReader
;
4 import java
.io
.IOException
;
5 import java
.io
.InputStream
;
6 import java
.io
.InputStreamReader
;
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
;
14 public class HttpdServer
implements WebServer
{
15 private HttpdServerTargetData targetData
;
16 private HttpdServerDeploymentData deploymentData
;
18 public URL
getBaseUrl() {
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
);
27 public String
getDeployedSystemId() {
28 // TODO Auto-generated method stub
32 public Distribution
getDistribution() {
33 // TODO Auto-generated method stub
37 public HttpdServerDeploymentData
getDeploymentData() {
38 return deploymentData
;
41 public HttpdServerTargetData
getTargetData() {
45 public void setTargetData(HttpdServerTargetData targetData
) {
46 this.targetData
= targetData
;
49 public void setDeploymentData(HttpdServerDeploymentData deploymentData
) {
50 this.deploymentData
= deploymentData
;