Examples of TldResourcePath


Examples of org.apache.tomcat.util.descriptor.tld.TldResourcePath

            log.info(Localizer.getMessage("jsp.tldCache.noTldSummary"));
        }
    }

    private void parseTld(String resourcePath) throws IOException, SAXException {
        TldResourcePath tldResourcePath =
                new TldResourcePath(context.getResource(resourcePath));
        parseTld(tldResourcePath);
    }
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.tld.TldResourcePath

                    if (!(entryName.startsWith("META-INF/") &&
                            entryName.endsWith(TLD_EXT))) {
                        continue;
                    }
                    found = true;
                    TldResourcePath tldResourcePath =
                            new TldResourcePath(jarURL, entryName);
                    try {
                        parseTld(tldResourcePath);
                    } catch (SAXException e) {
                        throw new IOException(e);
                    }
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.tld.TldResourcePath

                        return FileVisitResult.CONTINUE;
                    }

                    try {
                        URL url = file.toUri().toURL();
                        TldResourcePath path = new TldResourcePath(url);
                        parseTld(path);
                        tldFound = true;
                    } catch (SAXException e) {
                        throw new IOException(e);
                    }
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.tld.TldResourcePath

    public TldLocationsCache(Map<String, TldResourcePath> taglibMap) {
        mappings = new Hashtable<>(taglibMap.size());
        for (Map.Entry<String, TldResourcePath> entry : taglibMap.entrySet()) {
            String uri = entry.getKey();
            TldResourcePath tldResourcePath = entry.getValue();
            String url = tldResourcePath.getUrl().toExternalForm();
            String entryName = tldResourcePath.getEntryName();
            TldLocation tldLocation;
            if (entryName == null) {
                tldLocation = new TldLocation(url);
            } else {
                tldLocation = new TldLocation(entryName, url);
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.tld.TldResourcePath

            Map<String, TldResourcePath> uriTldResourcePathMap,
            Map<TldResourcePath, TaglibXml> tldResourcePathTaglibXmlMap) {
        this.servletContext = servletContext;
        this.uriTldResourcePathMap.putAll(uriTldResourcePathMap);
        for (Entry<TldResourcePath, TaglibXml> entry : tldResourcePathTaglibXmlMap.entrySet()) {
            TldResourcePath tldResourcePath = entry.getKey();
            long lastModified[] = getLastModified(tldResourcePath);
            TaglibXmlCacheEntry cacheEntry = new TaglibXmlCacheEntry(
                    entry.getValue(), lastModified[0], lastModified[1]);
            this.tldResourcePathTaglibXmlMap.put(tldResourcePath, cacheEntry);
        }
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.tld.TldResourcePath

                uri = uri.substring(URN_JSPTLD.length());
            } else {
                isPlainUri = true;
            }

            TldResourcePath tldResourcePath = ctxt.getTldResourcePath(uri);
            if (tldResourcePath != null || !isPlainUri) {
                if (ctxt.getOptions().isCaching()) {
                    result = ctxt.getOptions().getCache().get(uri);
                }
                if (result == null) {
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.tld.TldResourcePath

                    if (!(entryName.startsWith("META-INF/") &&
                            entryName.endsWith(TLD_EXT))) {
                        continue;
                    }
                    found = true;
                    TldResourcePath tldResourcePath =
                            new TldResourcePath(jarURL, entryName);
                    try {
                        parseTld(tldResourcePath);
                    } catch (SAXException e) {
                        throw new IOException(e);
                    }
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.tld.TldResourcePath

                        return FileVisitResult.CONTINUE;
                    }

                    try {
                        URL url = file.toUri().toURL();
                        TldResourcePath path = new TldResourcePath(url);
                        parseTld(path);
                        tldFound = true;
                    } catch (SAXException e) {
                        throw new IOException(e);
                    }
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.tld.TldResourcePath

                        resourcePath,
                        taglibURI));
            }

            URL url = context.getResource(resourcePath);
            TldResourcePath tldResourcePath;
            if (resourcePath.endsWith(".jar")) {
                // if the path points to a jar file, the TLD is presumed to be
                // inside at META-INF/taglib.tld
                tldResourcePath = new TldResourcePath(url, "META-INF/taglib.tld");
            } else {
                tldResourcePath = new TldResourcePath(url);
            }
            // parse TLD but store using the URI supplied in the descriptor
            TaglibXml tld = tldParser.parse(tldResourcePath);
            taglibMap.put(taglibURI, tldResourcePath);
            tldCache.put(tldResourcePath, tld);
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.tld.TldResourcePath

            log.info(Localizer.getMessage("jsp.tldCache.noTldSummary"));
        }
    }

    private void parseTld(String resourcePath) throws IOException, SAXException {
        TldResourcePath tldResourcePath =
                new TldResourcePath(context.getResource(resourcePath));
        parseTld(tldResourcePath);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.