Package org.apache.cocoon.caching.validity

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


    }
 
  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


     *         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

      }
     
      SourceValidity evalidity = null;
      try {
       
        evalidity = new EventValidity(m_eventfactory.createEvent(methodurl));
       
        if(getLogger().isDebugEnabled())
          getLogger().debug("Created eventValidity for webdav request: "+evalidity);
     
      } catch (Exception e) {
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

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.