Package org.apache.excalibur.source.impl.validity

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


     *  If it is currently not possible to calculate such an information
     *  <code>null</code> is returned.
     */
    public SourceValidity getValidity() {
        if (this.source.getLastModified() > 0) {
            return new TimeStampValidity(this.source.getLastModified());
        }
        return null;
    }
View Full Code Here

        if(getLogger().isDebugEnabled())
          getLogger().debug("Falling back to TimeStampValidity!");
       
        final long lm = getLastModified();
            if (lm > 0) {
                validity = new TimeStampValidity(lm);
            }
      }
       
        return validity;
    }
View Full Code Here

     */
    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

     *  If it is currently not possible to calculate such an information
     *  <code>null</code> is returned.
     */
    public SourceValidity getValidity() {
        if (this.source.getLastModified() > 0) {
            return new TimeStampValidity(this.source.getLastModified());
        }
        return null;
    }
View Full Code Here

     */
    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

     * @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

            {
                return m_cachedValidity;
            }

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

        return null;
    }
View Full Code Here

    /**
     * Returns {@link TimeStampValidity} as resources may change in a directory-based classloader.
     */
    public SourceValidity getValidity()
    {
        return new TimeStampValidity(getLastModified());
    }
View Full Code Here

        {
            if (lm == m_cachedLastModificationDate)
                return m_cachedValidity;

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

TOP

Related Classes of org.apache.excalibur.source.impl.validity.TimeStampValidity

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.