interface and delegates all calls to the wrapped instance.
| Method from org.apache.cactus.integration.ant.container.ContainerWrapper Detail: |
public String getBaseURL() {
return getProtocol() + "://" + getServer() + ":" + getPort();
}
|
public String[] getContainerClasspath() {
return ((InstalledLocalContainer) container).getExtraClasspath();
}
|
public String getName() {
return container.getName();
}
|
public int getPort() {
String port = ((InstalledLocalContainer) container).getConfiguration()
.getPropertyValue("cargo.servlet.port");
if (port != null)
{
return Integer.parseInt(port);
}
else
{
return 8080;
}
}
|
public String getProtocol() {
return ((InstalledLocalContainer) container).getConfiguration()
.getPropertyValue(GeneralPropertySet.PROTOCOL);
}
|
public String getServer() {
return ((InstalledLocalContainer) container).getConfiguration()
.getPropertyValue(GeneralPropertySet.HOSTNAME);
}
|
public long getStartUpWait() {
//We don't need startup wait, as we integrate with cargo,
//and it will do the work for us :-)
return 0L;
}
|
public String getTestContext() {
return ((InstalledLocalContainer) container).getConfiguration()
.getPropertyValue("testContext");
}
|
public File getToDir() {
String location = ((InstalledLocalContainer) container)
.getConfiguration().getPropertyValue("cactus.toDir");
File toDir;
if (location != null)
{
toDir = new File(location);
}
else
{
toDir = new File("./target/" + container.getId() + "/");
toDir.mkdirs();
}
return toDir;
}
|
public void init() {
//this.container.init();
}
|
public boolean isEnabled() {
//For now containers are always enabled. Think of a way to implement.
return true;
}
|
public boolean isExcluded(String theTestName) {
//No tests are excluded per container for now. Think of
//a way to implement.
return false;
}
|
public void setContainer(Container theContainer) {
this.container = theContainer;
}
|
public void setContainerClasspath(Path theClasspath) {
if (theClasspath != null)
{
((InstalledLocalContainer) container)
.setExtraClasspath(theClasspath.list());
}
}
|
public void setLogger(Logger theLogger) {
this.container.setLogger(theLogger);
}
|
public void setSystemProperties(Map theProperties) {
if (theProperties != null)
{
((InstalledLocalContainer) container).setSystemProperties(theProperties);
}
}
|
public void shutDown() {
((InstalledLocalContainer) container).stop();
}
|
public void startUp() {
((InstalledLocalContainer) container).start();
}
|