1 package org
.argeo
.slc
.support
.deploy
;
3 import java
.io
.IOException
;
6 import org
.argeo
.slc
.core
.SlcException
;
7 import org
.argeo
.slc
.core
.build
.Distribution
;
9 public class HttpdServer
implements WebServer
{
10 private HttpdServerTargetData targetData
;
11 private HttpdServerDeploymentData deploymentData
;
13 public URL
getBaseUrl() {
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
);
22 public String
getDeployedSystemId() {
23 // TODO Auto-generated method stub
27 public Distribution
getDistribution() {
28 // TODO Auto-generated method stub
32 public HttpdServerDeploymentData
getDeploymentData() {
33 return deploymentData
;
36 public HttpdServerTargetData
getTargetData() {
40 public void setTargetData(HttpdServerTargetData targetData
) {
41 this.targetData
= targetData
;
44 public void setDeploymentData(HttpdServerDeploymentData deploymentData
) {
45 this.deploymentData
= deploymentData
;