Examples of ExpiresCacheKey


Examples of org.apache.cocoon.pipeline.caching.ExpiresCacheKey

                    this.logger.debug("  ~ adding " + ExpiresCacheKey.class.getSimpleName() + " for component: "
                            + pipelineComponent + " (the component doesn't support caching "
                            + "but expires caching is activated)");
                }

                return new ExpiresCacheKey(new InvalidCacheKey(this.expiresCacheKey), this.expires);
            }

            // component does not support caching
            if (this.logger.isDebugEnabled()) {
                this.logger.debug("  ~ no caching: " + pipelineComponent);
                this.logger.debug("Aborting cache key construction");
            }

            return null;
        }

        // support expires caching
        if (this.expires != null) {
            CacheKey expiresCacheKey = new ExpiresCacheKey(result, this.expires);

            if (this.logger.isDebugEnabled()) {
                this.logger.debug("Creating  " + expiresCacheKey + " for pipeline " + this);
            }
View Full Code Here

Examples of org.apache.cocoon.pipeline.caching.ExpiresCacheKey

                    score++;
                }

                // expires condition can be only applied to ExpiresCacheKey instances
                if ((minExpires != null || maxExpires != null) && cacheKey instanceof ExpiresCacheKey) {
                    ExpiresCacheKey expiresCacheKey = (ExpiresCacheKey) cacheKey;
                    Date expiresDate = new Date(expiresCacheKey.getExpirationTimestamp());

                    if (minExpires != null && expiresDate.compareTo(minExpires) >= 0) {
                        score++;
                    }
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.