1 26 package org.objectweb.jonas_web.deployment.rules; 27 28 import org.apache.commons.digester.Digester; 29 30 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 31 32 36 public class SecurityConstraintRuleSet extends JRuleSetBase { 37 38 39 43 public SecurityConstraintRuleSet(String prefix) { 44 super(prefix); 45 } 46 47 48 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "security-constraint", 54 "org.objectweb.jonas_web.deployment.xml.SecurityConstraint"); 55 digester.addSetNext(prefix + "security-constraint", 56 "addSecurityConstraint", 57 "org.objectweb.jonas_web.deployment.xml.SecurityConstraint"); 58 59 digester.addRuleSet(new WebResourceCollectionRuleSet(prefix + "security-constraint/")); 60 digester.addRuleSet(new AuthConstraintRuleSet(prefix + "security-constraint/")); 61 digester.addRuleSet(new UserDataConstraintRuleSet(prefix + "security-constraint/")); 62 } 63 } 64 65 | Popular Tags |