Package org.apache.cocoon.caching.validity

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


      }
     
      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


      }
     
      SourceValidity evalidity = null;
      try {
       
        evalidity = new EventValidity(m_eventfactory.createEvent(methodurl));
       
        if(getLogger().isDebugEnabled())
          getLogger().debug("Created eventValidity for dasl: "+evalidity);
     
      } catch (Exception e) {
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(Source source) {
        if (m_cache != null) {
            return new EventValidity(new NameValueEvent(getEventName(),source.getURI()));
        }
        return null;
    }
View Full Code Here

    /* (non-Javadoc)
     * @see org.apache.cocoon.caching.CacheableProcessingComponent#getValidity()
     */
    public SourceValidity getValidity() {
        return new EventValidity(m_event);
    }
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

    }

    private 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

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

    /* (non-Javadoc)
     * @see org.apache.cocoon.caching.CacheableProcessingComponent#getValidity()
     */
    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.