1 package org
.argeo
.slc
.support
.deploy
;
4 import java
.io
.IOException
;
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
;
13 public class HttpdServer
implements WebServer
{
14 private HttpdServerTargetData targetData
;
16 public URL
getBaseUrl() {
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
);
25 public String
getDeployedSystemId() {
26 // TODO Auto-generated method stub
30 public Distribution
getDistribution() {
31 // TODO Auto-generated method stub
35 public DeploymentData
getDeploymentData() {
36 // TODO Auto-generated method stub
40 public HttpdServerTargetData
getTargetData() {
44 public void setTargetData(HttpdServerTargetData targetData
) {
45 this.targetData
= targetData
;