View Javadoc
1   /*
2    * Copyright (C) 2007-2012 Argeo GmbH
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *         http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.argeo.slc.support.deploy;
17  
18  import java.io.File;
19  import java.net.URL;
20  
21  import org.argeo.slc.build.Distribution;
22  import org.argeo.slc.deploy.DeploymentData;
23  
24  public class SimpleHttpdApplication implements WebApplication {
25  	private HttpdApplicationTargetData targetData;
26  	private Distribution distribution;
27  
28  	public void setDistribution(Distribution distribution) {
29  		this.distribution = distribution;
30  	}
31  
32  	public URL getBaseUrl() {
33  		return targetData.getTargetBaseUrl();
34  	}
35  
36  	public File getRootLocation() {
37  		return targetData.getTargetRootLocation();
38  	}
39  
40  	public String getDeployedSystemId() {
41  		// TODO Auto-generated method stub
42  		return null;
43  	}
44  
45  	public HttpdApplicationTargetData getTargetData() {
46  		return targetData;
47  	}
48  
49  	public void setTargetData(HttpdApplicationTargetData targetData) {
50  		this.targetData = targetData;
51  	}
52  
53  	public Distribution getDistribution() {
54  		return distribution;
55  	}
56  
57  	public DeploymentData getDeploymentData() {
58  		// TODO Auto-generated method stub
59  		return null;
60  	}
61  
62  }