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

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


     *  <code>null</code> is returned.
     */
    public SourceValidity getValidity() {
        final long lm = getLastModified();
        if (lm > 0) {
            return new TimeStampValidity(lm);
        }
        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 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

     *  <code>null</code> is returned.
     */
    public SourceValidity getValidity() {
        long lastModified = getLastModified();
        if (lastModified > 0) {
            return new TimeStampValidity(lastModified);
        }
        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() {
        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

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

     *  <code>null</code> is returned.
     */
    public SourceValidity getValidity() {
        long lastModified = getLastModified();
        if (lastModified > 0) {
            return new TimeStampValidity(lastModified);
        }
        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.