1 package org
.argeo
.slc
.support
.deploy
;
3 import java
.io
.IOException
;
6 import org
.argeo
.slc
.SlcException
;
7 import org
.argeo
.slc
.build
.Distribution
;
8 import org
.argeo
.slc
.deploy
.DeploymentData
;
9 import org
.argeo
.slc
.deploy
.TargetData
;
11 public class HttpdServer
implements WebServer
{
12 private HttpdServerTargetData targetData
;
13 private HttpdServerDeploymentData deploymentData
;
15 public URL
getBaseUrl() {
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
);
24 public String
getDeployedSystemId() {
25 // TODO Auto-generated method stub
29 public Distribution
getDistribution() {
30 // TODO Auto-generated method stub
34 public DeploymentData
getDeploymentData() {
35 return deploymentData
;
38 public TargetData
getTargetData() {
42 public void setTargetData(TargetData targetData
) {
43 this.targetData
= (HttpdServerTargetData
)targetData
;
46 public void setDeploymentData(DeploymentData deploymentData
) {
47 this.deploymentData
= (HttpdServerDeploymentData
)deploymentData
;