for (int i = 0; i < node.size(); i++) Object o = node.get(i); if (o instanceof XmlParser.Node && "taglib".equals(((XmlParser.Node) o).getTag())) visitTagLib(context,descriptor, (XmlParser.Node) o); Iterator<XmlParser.Node> iter = node.iterator("jsp-property-group"); List<String> paths = new ArrayList<String>(); while (iter.hasNext()) Iterator<XmlParser.Node> iter2 = group.iterator("url-pattern"); while (iter2.hasNext()) String url = iter2.next().toString(false, true); url = ServletPathSpec.normalize(url); paths.add( url); jpg.setElIgnored(group.getString("el-ignored", false, true)); jpg.setPageEncoding(group.getString("page-encoding", false, true)); jpg.setScriptingInvalid(group.getString("scripting-invalid", false, true)); jpg.setIsXml(group.getString("is-xml", false, true)); jpg.setDeferredSyntaxAllowedAsLiteral(group.getString("deferred-syntax-allowed-as-literal", false, true)); jpg.setTrimDirectiveWhitespaces(group.getString("trim-directive-whitespaces", false, true)); jpg.setDefaultContentType(group.getString("default-content-type", false, true)); jpg.setBuffer(group.getString("buffer", false, true)); jpg.setErrorOnUndeclaredNamespace(group.getString("error-on-undeclared-namespace", false, true)); Iterator<XmlParser.Node> preludes = group.iterator("include-prelude"); while (preludes.hasNext())
String id = node.getAttribute("id"); String name = node.getString("servlet-name", false, true); ServletHolder holder = _servletHolderMap.get(name); Iterator<?> iParamsIter = node.iterator("init-param"); while (iParamsIter.hasNext()) String pname = paramNode.getString("param-name", false, true); String pvalue = paramNode.getString("param-value", false, true); String originName = name+".servlet.init-param."+pname; String servlet_class = node.getString("servlet-class", false, true); if ("".equals(servlet_class)) servlet_class = null; String jsp_file = node.getString("jsp-file", false, true); if (jsp_file != null) holder.setForcedPath(jsp_file); XmlParser.Node startup = node.get("load-on-startup"); if (startup != null) String s = startup.toString(false, true).toLowerCase(Locale.ENGLISH); int order = 0; if (s.startsWith("t")) Iterator<Node> sRefsIter = node.iterator("security-role-ref"); while (sRefsIter.hasNext())
String id = _root.getAttribute("id"); Object obj = id == null?null:_configuration.getIdMap().get(id); if (obj == null && oClass != null) index = _root.size(); Map<String, Object> namedArgMap = new HashMap<>(); for (int i = 0; i < _root.size(); i++) Object o = _root.get(i); if (o instanceof String) if (!(node.getTag().equals("Arg"))) String namedAttribute = node.getAttribute("name"); Object value=value(obj,(XmlParser.Node)o); if (namedAttribute != null)
private Object call(Object obj, XmlParser.Node node) throws Exception String id = node.getAttribute("id"); Class<?> oClass = nodeClass(node); if (oClass != null) oClass = obj.getClass(); if (oClass == null) throw new IllegalArgumentException(node.toString()); int argIndex = node.size(); for (int i = 0; i < node.size(); i++) Object o = node.get(i); if (o instanceof String) continue; if (!((XmlParser.Node)o).getTag().equals("Arg")) for (int i = 0, j = 0; j < size; i++) Object o = node.get(i); if (o instanceof String) continue; String method = node.getAttribute("name"); if (LOG.isDebugEnabled()) LOG.debug("XML call " + method);
private Object call(Object obj, XmlParser.Node node) throws Exception String id = node.getAttribute("id"); Class<?> oClass = nodeClass(node); if (oClass != null) oClass = obj.getClass(); if (oClass == null) throw new IllegalArgumentException(node.toString()); int argi = node.size(); for (int i = 0; i < node.size(); i++) Object o = node.get(i); if (o instanceof String) continue; if (!((XmlParser.Node)o).getTag().equals("Arg")) for (int i = 0, j = 0; j < size; i++) Object o = node.get(i); if (o instanceof String) continue; String method = node.getAttribute("name"); if (LOG.isDebugEnabled()) LOG.debug("XML call " + method);
private Object call(Object obj, XmlParser.Node node) throws Exception String id = node.getAttribute("id"); Class<?> oClass = nodeClass(node); if (oClass != null) oClass = obj.getClass(); if (oClass == null) throw new IllegalArgumentException(node.toString()); int argi = node.size(); for (int i = 0; i < node.size(); i++) Object o = node.get(i); if (o instanceof String) continue; if (!((XmlParser.Node)o).getTag().equals("Arg")) for (int i = 0, j = 0; j < size; i++) Object o = node.get(i); if (o instanceof String) continue; String method = node.getAttribute("name"); if (LOG.isDebugEnabled()) LOG.debug("XML call " + method);
int argIndex = node.size(); for (int i = 0; i < node.size(); i++) Object o = node.get(i); if (o instanceof String) continue; if (!((XmlParser.Node)o).getTag().equals("Arg")) Object o = node.get(i); String namedAttribute = argNode.getAttribute("name"); Object value=value(obj,(XmlParser.Node)o); if (namedAttribute != null)
int argIndex = node.size(); for (int i = 0; i < node.size(); i++) Object o = node.get(i); if (o instanceof String) continue; if (!((XmlParser.Node)o).getTag().equals("Arg")) Object o = node.get(i); String namedAttribute = argNode.getAttribute("name"); Object value=value(obj,(XmlParser.Node)o); if (namedAttribute != null)
String id = cfg.getAttribute("id"); if (id != null) _configuration.getIdMap().put(id,obj); for (; i < cfg.size(); i++) Object o = cfg.get(i); if (o instanceof String) continue; String tag = node.getTag(); if ("Set".equals(tag)) set(obj,node);
private Object call(Object obj, XmlParser.Node node) throws Exception String id = node.getAttribute("id"); Class<?> oClass = nodeClass(node); if (oClass != null) oClass = obj.getClass(); if (oClass == null) throw new IllegalArgumentException(node.toString()); int argIndex = node.size(); for (int i = 0; i < node.size(); i++) Object o = node.get(i); if (o instanceof String) continue; if (!((XmlParser.Node)o).getTag().equals("Arg")) for (int i = 0, j = 0; j < size; i++) Object o = node.get(i); if (o instanceof String) continue; String method = node.getAttribute("name"); if (LOG.isDebugEnabled()) LOG.debug("XML call " + method);
String id = _config.getAttribute("id"); Object obj = id == null ? null : _idMap.get(id); if (obj == null && oClass != null) index = _config.size(); Map<String, Object> namedArgMap = new HashMap<>(); for (int i = 0; i < _config.size(); i++) Object o = _config.get(i); if (o instanceof String) if (!(node.getTag().equals("Arg"))) String namedAttribute = node.getAttribute("name"); Object value=value(obj,(XmlParser.Node)o); if (namedAttribute != null)
String id = _config.getAttribute("id"); Object obj = id == null ? null : _idMap.get(id); if (obj == null && oClass != null) index = _config.size(); Map<String, Object> namedArgMap = new HashMap<>(); for (int i = 0; i < _config.size(); i++) Object o = _config.get(i); if (o instanceof String) if (!(node.getTag().equals("Arg"))) String namedAttribute = node.getAttribute("name"); Object value=value(obj,(XmlParser.Node)o); if (namedAttribute != null)
String id = cfg.getAttribute("id"); if (id != null) _configuration.getIdMap().put(id,obj); for (; i < cfg.size(); i++) Object o = cfg.get(i); if (o instanceof String) continue; String tag = node.getTag(); if ("Set".equals(tag)) set(obj,node);
String id = cfg.getAttribute("id"); if (id != null) _configuration.getIdMap().put(id,obj); for (; i < cfg.size(); i++) Object o = cfg.get(i); if (o instanceof String) continue; String tag = node.getTag(); if ("Set".equals(tag)) set(obj,node);
private Object call(Object obj, XmlParser.Node node) throws Exception String id = node.getAttribute("id"); Class<?> oClass = nodeClass(node); if (oClass != null) oClass = obj.getClass(); if (oClass == null) throw new IllegalArgumentException(node.toString()); int argi = node.size(); for (int i = 0; i < node.size(); i++) Object o = node.get(i); if (o instanceof String) continue; if (!((XmlParser.Node)o).getTag().equals("Arg")) for (int i = 0, j = 0; j < size; i++) Object o = node.get(i); if (o instanceof String) continue; String method = node.getAttribute("name"); if (LOG.isDebugEnabled()) LOG.debug("XML call " + method);