Package org.apache.naming.resources

Examples of org.apache.naming.resources.CacheEntry


                String trimmed = resourceName/*.substring(trim)*/;
                if (trimmed.equalsIgnoreCase("WEB-INF") ||
                    trimmed.equalsIgnoreCase("META-INF"))
                    continue;

                CacheEntry childCacheEntry =
                    renderResources.lookupCache(cacheEntry.name
                                                + resourceName);
                if (!childCacheEntry.exists) {
                    continue;
                }
View Full Code Here


            else
                log("DefaultServlet.serveResource:  Serving resource '" +
                    path + "' headers only");
        }

        CacheEntry cacheEntry = null;
        ProxyDirContext proxyDirContext = resources;
        if (alternateDocBases == null
                || alternateDocBases.size() == 0) {
            cacheEntry = proxyDirContext.lookupCache(path);
        } else {
View Full Code Here

                    continue;

                if ((cacheEntry.name + trimmed).equals(contextXsltFile))
                    continue;

                CacheEntry childCacheEntry =
                    proxyDirContext.lookupCache(cacheEntry.name + resourceName);
                if (!childCacheEntry.exists) {
                    continue;
                }
View Full Code Here

                String trimmed = resourceName/*.substring(trim)*/;
                if (trimmed.equalsIgnoreCase("WEB-INF") ||
                    trimmed.equalsIgnoreCase("META-INF"))
                    continue;

                CacheEntry childCacheEntry =
                    proxyDirContext.lookupCache(cacheEntry.name + resourceName);
                if (!childCacheEntry.exists) {
                    continue;
                }

View Full Code Here

            this.dirName = dirName;
        }

        public int compare(NameClassPair p1, NameClassPair p2) {

            CacheEntry ce1 = resources.lookupCache(
                dirName + p1.getName());
            Date date1 = ce1.attributes.getCreationOrLastModifiedDate();
            CacheEntry ce2 = resources.lookupCache(
                dirName + p2.getName());
            Date date2 = ce2.attributes.getCreationOrLastModifiedDate();
            if (date1.before(date2)) {
                return -1;
            } else if (date1.after(date2)) {
View Full Code Here

            this.dirName = dirName;
        }

        public int compare(NameClassPair p1, NameClassPair p2) {

            CacheEntry ce1 = resources.lookupCache(
                dirName + p1.getName());
            long size1 = ce1.attributes.getContentLength();
            CacheEntry ce2 = resources.lookupCache(
                dirName + p2.getName());
            long size2 = ce2.attributes.getContentLength();
            if (size1 < size2) {
                return -1;
            } else if (size1 > size2) {
View Full Code Here

        // Exclude any resource in the /WEB-INF and /META-INF subdirectories
        if (isSpecialPath(path))
            return;

        CacheEntry cacheEntry = resources.lookupCache(path);
        if (!cacheEntry.exists) {
            // File is in directory listing but doesn't appear to exist
            // Broken symlink or odd permission settings?
            return;
        }
View Full Code Here

                    continue;

                if ((cacheEntry.name + trimmed).equals(contextXsltFile))
                    continue;

                CacheEntry childCacheEntry =
                    resources.lookupCache(cacheEntry.name + resourceName);
                if (!childCacheEntry.exists) {
                    continue;
                }
View Full Code Here

                String trimmed = resourceName/*.substring(trim)*/;
                if (trimmed.equalsIgnoreCase("WEB-INF") ||
                    trimmed.equalsIgnoreCase("META-INF"))
                    continue;

                CacheEntry childCacheEntry =
                    resources.lookupCache(cacheEntry.name + resourceName);
                if (!childCacheEntry.exists) {
                    continue;
                }

View Full Code Here

            else
                log("DefaultServlet.serveResource:  Serving resource '" +
                    path + "' headers only");
        }

        CacheEntry cacheEntry = resources.lookupCache(path);

        if (!cacheEntry.exists) {
            // Check if we're included so we can return the appropriate
            // missing resource name in the error
            String requestUri = (String) request.getAttribute(
View Full Code Here

TOP

Related Classes of org.apache.naming.resources.CacheEntry

Copyright © 2018 www.massapicom. 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.