User: starksm
Date: 02/04/11 01:53:23
Modified: src/main/org/jboss/metadata WebMetaData.java
Log:
Drop the web.xml and jboss-web.xml DOM elements and add the
complete metadata object.
Revision Changes Path
1.8 +25 -3 jboss/src/main/org/jboss/metadata/WebMetaData.java
Index: WebMetaData.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/metadata/WebMetaData.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- WebMetaData.java 16 Feb 2002 04:48:41 -0000 1.7
+++ WebMetaData.java 11 Apr 2002 08:53:23 -0000 1.8
@@ -22,7 +22,7 @@
* @see org.jboss.web.AbstractWebContainer
* @author [EMAIL PROTECTED]
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
*/
public class WebMetaData implements XmlLoadable
{
@@ -35,6 +35,11 @@
/** The war context root as specified as the jboss-web.xml
descriptor level. */
private String contextRoot;
+ /** The server container virtual host the war should be deployed into
+ */
+ private String virtualHost;
+ /** The JNDI name of the security domain implementation
+ */
private String securityDomain;
public WebMetaData()
@@ -85,6 +90,10 @@
{
return contextRoot;
}
+ public void setContextRoot(String contextRoot)
+ {
+ this.contextRoot = contextRoot;
+ }
/** Return the optional security-domain jboss-web.xml element.
@return The jndiName of the security manager implementation that is
@@ -96,7 +105,15 @@
{
return securityDomain;
}
-
+
+ /** The servlet container virtual host the war should be deployed into. If
+ null then the servlet container default host should be used.
+ */
+ public String getVirtualHost()
+ {
+ return virtualHost;
+ }
+
public void importXml(Element element) throws Exception
{
String rootTag = element.getOwnerDocument().getDocumentElement().getTagName();
@@ -178,7 +195,12 @@
Element securityDomainElement = MetaData.getOptionalChild(jbossWeb,
"security-domain");
if( securityDomainElement != null )
securityDomain = MetaData.getElementContent(securityDomainElement);
-
+
+ // Parse the jboss-web/virtual-host element
+ Element virtualHostElement = MetaData.getOptionalChild(jbossWeb,
"virtual-host");
+ if( virtualHostElement != null )
+ virtualHost = MetaData.getElementContent(virtualHostElement);
+
// Parse the jboss-web/resource-ref elements
Iterator iterator = MetaData.getChildrenByTagName(jbossWeb, "resource-ref");
while( iterator.hasNext() )
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development