Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » components » source » [javadoc | source]
org.apache.cocoon.components.source
public final class: DelayedRefreshSourceWrapper [javadoc | source]
java.lang.Object
   org.apache.cocoon.components.source.DelayedRefreshSourceWrapper

All Implemented Interfaces:
    Source, XMLizable, ModifiableSource

Deprecated! by - the Avalon Exalibur Source Resolving

A wrapper around a Source that reduces the number of calls to Source.getLastModified() which can be a costly operation.
Constructor:
 public DelayedRefreshSourceWrapper(Source source,
    long delay) 
    Creates a wrapper for a Source which ensures that Source.getLastModified() won't be called more than once per delay milliseconds period.
    Parameters:
    source - the wrapped Source
    delay - the last-modified refresh delay, in milliseconds
Method from org.apache.cocoon.components.source.DelayedRefreshSourceWrapper Summary:
getContentLength,   getInputSource,   getInputStream,   getLastModified,   getSystemId,   recycle,   refresh,   toSAX
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.components.source.DelayedRefreshSourceWrapper Detail:
 public final long getContentLength() 
      Deprecated!
 public final InputSource getInputSource() throws IOException, ProcessingException 
      Deprecated!
 public final InputStream getInputStream() throws IOException, ProcessingException 
      Deprecated!
 public final long getLastModified() 
      Deprecated!
    Get the last modification time for the wrapped Source. The age of the returned information is guaranteed to be lower than or equal to the delay specified in the constructor.

    This method is also thread-safe, even if the underlying Source is not.

 public final String getSystemId() 
      Deprecated!
 public final  void recycle() 
      Deprecated!
 public final synchronized  void refresh() 
      Deprecated!
    Force the refresh of the wrapped Source, even if the refresh period isn't over, and starts a new period.

    This method is thread-safe, even if the underlying Source is not.

 public final  void toSAX(ContentHandler handler) throws SAXException 
      Deprecated!