User: starksm
Date: 01/05/09 20:20:34
Modified: src/main/org/jboss/metadata WebMetaData.java
Log:
Add support for a security-domain element
Revision Changes Path
1.2 +19 -4 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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- WebMetaData.java 2001/05/09 08:18:47 1.1
+++ WebMetaData.java 2001/05/10 03:20:34 1.2
@@ -18,11 +18,11 @@
* descriptors as used by the AbstractWebContainer web container integration
* support class.
*
- * @see XmlLoadable
- * @see org.jboss.web.AbstractWebContainer
+ * @see XmlLoadable
+ * @see org.jboss.web.AbstractWebContainer
- * @author [EMAIL PROTECTED]
- * @version $Revision: 1.1 $
+ * @author [EMAIL PROTECTED]
+ * @version $Revision: 1.2 $
*/
public class WebMetaData implements XmlLoadable
{
@@ -57,6 +57,16 @@
{
return resourceReferences.values().iterator();
}
+ /** Return the optional security-domain jboss-web.xml element.
+ @return The jndiName of the security manager implementation that is
+ responsible for security of the web application. May be null if
+ there was no security-domain specified in the jboss-web.xml
+ descriptor.
+ */
+ public String getSecurityDomain()
+ {
+ return securityDomain;
+ }
public void importXml(Element element) throws Exception
{
@@ -110,6 +120,11 @@
*/
protected void importJBossWebXml(Element jbossWeb) throws Exception
{
+ // Parse the jboss-web/securityDomain element
+ Element securityDomainElement = MetaData.getOptionalChild(jbossWeb,
"security-domain");
+ if( securityDomainElement != null )
+ securityDomain = MetaData.getElementContent(securityDomainElement);
+
// Parse the jboss-web/resource-ref elements
Iterator iterator = MetaData.getChildrenByTagName(jbossWeb, "resource-ref");
while( iterator.hasNext() )
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development