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 WebResourceCollectionRuleSet extends JRuleSetBase { 37 38 39 43 public WebResourceCollectionRuleSet(String prefix) { 44 super(prefix); 45 } 46 47 48 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "web-resource-collection", 54 "org.objectweb.jonas_web.deployment.xml.WebResourceCollection"); 55 digester.addSetNext(prefix + "web-resource-collection", 56 "addWebResourceCollection", 57 "org.objectweb.jonas_web.deployment.xml.WebResourceCollection"); 58 59 digester.addCallMethod(prefix + "web-resource-collection/web-resource-name", 60 "setWebResourceName", 0); 61 62 digester.addCallMethod(prefix + "web-resource-collection/description", 63 "addDescription", 0); 64 65 digester.addCallMethod(prefix + "web-resource-collection/url-pattern", 66 "addUrlPattern", 0); 67 68 digester.addCallMethod(prefix + "web-resource-collection/http-method", 69 "addHttpMethod", 0); 70 71 } 72 } 73 74 | Popular Tags |