1 26 27 package org.objectweb.jonas_web.deployment.rules; 28 29 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 30 import org.apache.commons.digester.Digester; 31 32 36 public class ServletMappingRuleSet extends JRuleSetBase { 37 38 39 43 public ServletMappingRuleSet(String prefix) { 44 super(prefix); 45 } 46 47 48 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "servlet-mapping", 54 "org.objectweb.jonas_web.deployment.xml.ServletMapping"); 55 digester.addSetNext(prefix + "servlet-mapping", 56 "addServletMapping", 57 "org.objectweb.jonas_web.deployment.xml.ServletMapping"); 58 59 digester.addCallMethod(prefix + "servlet-mapping/servlet-name", 60 "setServletName", 0); 61 digester.addCallMethod(prefix + "servlet-mapping/url-pattern", 62 "setUrlPattern", 0); 63 } 64 65 66 } 67 68 69 | Popular Tags |