1 28 29 package com.caucho.jsp.cfg; 30 31 import com.caucho.server.webapp.WebApp; 32 33 import java.util.ArrayList ; 34 35 43 public class JspConfig { 44 private ArrayList <JspTaglib> _taglibList = new ArrayList <JspTaglib>(); 45 46 private WebApp _webApp; 47 48 private ArrayList <JspPropertyGroup> _propertyGroupList 49 = new ArrayList <JspPropertyGroup>(); 50 51 public JspConfig(WebApp webApp) 52 { 53 _webApp = webApp; 54 } 55 56 59 public void addTaglib(JspTaglib taglib) 60 { 61 _taglibList.add(taglib); 62 } 63 64 67 public ArrayList <JspTaglib> getTaglibList() 68 { 69 return _taglibList; 70 } 71 72 public JspPropertyGroup createJspPropertyGroup() 73 { 74 return new JspPropertyGroup(_webApp); 75 } 76 77 80 public void addJspPropertyGroup(JspPropertyGroup propertyGroup) 81 { 82 _propertyGroupList.add(propertyGroup); 83 } 84 85 88 public ArrayList getJspPropertyGroupList() 89 { 90 return _propertyGroupList; 91 } 92 93 96 public JspPropertyGroup findJspPropertyGroup(String url) 97 { 98 for (int i = 0; i < _propertyGroupList.size(); i++) { 99 JspPropertyGroup group = _propertyGroupList.get(i); 100 101 if (group.match(url)) { 102 return group; 103 } 104 } 105 106 return null; 107 } 108 109 112 public ArrayList <JspPropertyGroup> findJspPropertyGroupList(String url) 113 { 114 ArrayList <JspPropertyGroup> list = new ArrayList <JspPropertyGroup>(); 115 116 for (int i = 0; i < _propertyGroupList.size(); i++) { 117 JspPropertyGroup group = _propertyGroupList.get(i); 118 119 if (group.match(url)) { 120 list.add(group); 121 } 122 } 123 124 return list; 125 } 126 } 127 | Popular Tags |