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

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


      {
        return validity;
      }

      cachedLastModificationDate = lm;
      validity = new TimeStampValidity( lm );
      return validity;
    }
    return null;
    }
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

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

     *         component is currently not cacheable.
     */
    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 validity;
      }

      cachedLastModificationDate = lm;
      validity = new TimeStampValidity( lm );
      return validity;
    }
    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

     *  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

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.