org.objectweb.jonas.ant.jonasbase
Class WebContainer

java.lang.Object
  extended by org.objectweb.jonas.ant.jonasbase.Tasks
      extended by org.objectweb.jonas.ant.jonasbase.WebContainer

public class WebContainer
extends Tasks

Allow to configure the WebContainer service

Author:
Florent Benoit

Constructor Summary
WebContainer()
          Default constructor
 
Method Summary
 void addConfiguredJetty(Jetty jetty)
          Configure the Jetty WebContainer.
 void addConfiguredTomcat(Tomcat tomcat)
          Configure the Tomcat WebContainer.
 void setName(java.lang.String containerName)
          Set the name of the web container : jetty or tomcat.
 void setPort(java.lang.String portNumber)
          Set the port number for the WebContainer.
 
Methods inherited from class org.objectweb.jonas.ant.jonasbase.Tasks
addTask, addTasks, addTasks, getTasks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebContainer

public WebContainer()
Default constructor

Method Detail

setPort

public void setPort(java.lang.String portNumber)
Set the port number for the WebContainer. Optionnal, if missing, we look at the inner element <jetty>/<http> or <tomcat>/<http>. It overrides both <jetty>/<http> or <tomcat>/<http> values if set.

Parameters:
portNumber - the port for the HTTP web Container

setName

public void setName(java.lang.String containerName)
Set the name of the web container : jetty or tomcat. Optionnal, if missing, we look at the inner element <jetty> or <tomcat>. This setting is priority 1 if both <jetty> or <tomcat> are set.

Parameters:
containerName - jetty or tomcat.

addConfiguredJetty

public void addConfiguredJetty(Jetty jetty)
Configure the Jetty WebContainer.

Parameters:
jetty - Jetty Configuration.

addConfiguredTomcat

public void addConfiguredTomcat(Tomcat tomcat)
Configure the Tomcat WebContainer.

Parameters:
tomcat - Tomcat Configuration.