Examples of TimeStampValidity


Examples of org.apache.excalibur.source.impl.validity.TimeStampValidity

     *         component is currently not cacheable.
     */
    public SourceValidity getValidity() {
        if (this.inputSource.getLastModified() != 0) {
            AggregatedValidity validity = new AggregatedValidity();
            validity.add(new TimeStampValidity(page));
            validity.add(this.inputSource.getValidity());
            return validity;
        } else {
            return null;
        }
View Full Code Here

Examples of org.apache.excalibur.source.impl.validity.TimeStampValidity

     * @return The generated validity object or <code>null</code> if the
     *         component is currently not cacheable.
     */
    public SourceValidity getValidity() {
        if (this.lastModified > 0) {
            return new TimeStampValidity(this.lastModified);
        } else {
            if (this.defaultCache) {
                return NOPValidity.SHARED_INSTANCE;
            } else {
                return null;
View Full Code Here

Examples of org.apache.excalibur.source.impl.validity.TimeStampValidity

        {
            if (lm == m_cachedLastModificationDate)
                return m_cachedValidity;

            m_cachedLastModificationDate = lm;
            m_cachedValidity = new TimeStampValidity(lm);
            return m_cachedValidity;
        }
        return null;
    }
View Full Code Here

Examples of org.apache.excalibur.source.impl.validity.TimeStampValidity

            {
                return m_cachedValidity;
            }

            m_cachedLastModificationDate = lm;
            m_cachedValidity = new TimeStampValidity( lm );
            return m_cachedValidity;
        }

        return null;
    }
View Full Code Here

Examples of org.apache.excalibur.source.impl.validity.TimeStampValidity

     */
    public SourceValidity getValidity() {

        try {
            if ((this.validity==null) && (this.revisionDescriptor!=null)) {
                this.validity = new TimeStampValidity(this.revisionDescriptor.getLastModifiedAsDate().getTime());
            }
        } catch (Exception e) {
            getLogger().debug("Could not create SourceValidity", e);

            return null;
View Full Code Here

Examples of org.apache.excalibur.source.impl.validity.TimeStampValidity

    public SourceValidity getValidity() {
        // Check if sitetree implementation supports last modified
        if (!(sitetree instanceof LastModified)) {
            return null;
        } else {
            return new TimeStampValidity(((LastModified) sitetree).getLastModified());
        }
    }
View Full Code Here

Examples of org.apache.excalibur.source.impl.validity.TimeStampValidity

    public SourceValidity getValidity() {
        // Check if sitetree implementation supports last modified
        if (!(sitetree instanceof LastModified)) {
            return null;
        } else {
            return new TimeStampValidity(((LastModified) sitetree).getLastModified());
        }
    }
View Full Code Here

Examples of org.apache.excalibur.source.impl.validity.TimeStampValidity

     */
    public SourceValidity getValidity() {
        if (m_validity == null && m_descriptor != null) {
            final long lastModified = getLastModified();
            if (lastModified > 0) {
                m_validity = new TimeStampValidity(lastModified);               
            }
        }
        return m_validity;
    }
View Full Code Here

Examples of org.apache.excalibur.source.impl.validity.TimeStampValidity

     */
    public SourceValidity getValidity() {
        if (this.inputSource.getLastModified()!=0) {
            AggregatedValidity validity = new AggregatedValidity();

            validity.add(new TimeStampValidity(page));
            validity.add(this.inputSource.getValidity());
            return validity;
        } else {
            return null;
        }
View Full Code Here

Examples of org.apache.excalibur.source.impl.validity.TimeStampValidity

     * @return The generated validity object or <code>null</code> if the
     *         component is currently not cacheable.
     */
    public SourceValidity getValidity() {
        if (this.lastModified > 0) {
            return new TimeStampValidity(this.lastModified);
        } else {
            if (this.defaultCache) {
                return NOPValidity.SHARED_INSTANCE;
            } else {
                return null;
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.