Package org.apache.cocoon.caching.validity

Examples of org.apache.cocoon.caching.validity.EventValidity


        }
    }
   
    public SourceValidity getValidity(Source source) {
        if (m_cache != null) {
            return new EventValidity(new NameValueEvent(getEventName(),source.getURI()));
        }
        return null;
    }
View Full Code Here


        }
    }
   
    public SourceValidity getValidity(Source source) {
        if (m_cache != null) {
            return new EventValidity(new NameValueEvent(getEventName(),source.getURI()));
        }
        return null;
    }
View Full Code Here

        }
    }
   
    public SourceValidity getValidity(Source source) {
        if (m_cache != null) {
            return new EventValidity(new NameValueEvent(getEventName(),source.getURI()));
        }
        return null;
    }
View Full Code Here

     */
    public SourceValidity getValidity() {
        try {
            if (m_validity == null) {
                if (m_useEventCaching) {
                    m_validity = new EventValidity(
                        new NamedEvent(m_nat.getName() + m_uri));
                }
                else if (m_descriptor != null) {
                    m_validity = new TimeStampValidity(
                        m_descriptor.getLastModifiedAsDate().getTime());
View Full Code Here

     *         component is currently not cacheable.
     */
    public SourceValidity getValidity() {
        final Request request = ObjectModelHelper.getRequest(this.objectModel);
        String key = request.getParameter("pageKey") ;
        return new EventValidity(
                   new NamedEvent(
                       (key==null||"".equals(key)) ? "one" : key));
    }
View Full Code Here

        }
    }
   
    public SourceValidity getValidity(Source source) {
        if (m_cache != null) {
            return new EventValidity(new NameValueEvent(m_eventName,source.getURI()));
        }
        return null;
    }
View Full Code Here

    }

    protected SourceValidity[] getCacheValidities() {
        if (this.cache instanceof EventAware) {
            // use event caching strategy, the associated event is the source uri
            return new SourceValidity[] { new EventValidity(new NamedEvent(this.source.getURI())) };
        } else {
            // we need to store both the cache expiration and the original source validity
            // the former is to determine whether to recheck the latter (see checkValidity)
            return new SourceValidity[] { new ExpiresValidity(getExpiration()), source.getValidity() };
        }
View Full Code Here

    public Serializable getKey() {
        return m_key;
    }

    public SourceValidity getValidity() {
        return new EventValidity(m_event);
    }
View Full Code Here

    }
 
  public SourceValidity getValidity() {
        final Request request = ObjectModelHelper.getRequest(this.objectModel);
        String key = request.getParameter("pageKey") ;
        return new EventValidity(
                   new NamedEvent(
                       (key==null||"".equals(key)) ? "foo" : key));
    }
View Full Code Here

     
      SourceValidity validity = null;
     
      if(eventfactory!=null) {
        try {
          validity = new EventValidity(eventfactory.createEvent(this.url));
         
          if(getLogger().isDebugEnabled())
            getLogger().debug("Created EventValidity for source: "+validity);
       
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.apache.cocoon.caching.validity.EventValidity

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.