portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sg...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/cache/disk DiskCache.java DiskCacheEntry.java JetspeedDiskCacheEntry.java
Date Tue, 29 May 2001 18:47:30 GMT
sgala       01/05/29 11:47:30

  Modified:    src/java/org/apache/jetspeed/cache/disk DiskCache.java
                        DiskCacheEntry.java JetspeedDiskCacheEntry.java
  Log:
  minor doc updates and JetspeedDiskCacheEntry as protected
  
  Revision  Changes    Path
  1.12      +12 -12    jakarta-jetspeed/src/java/org/apache/jetspeed/cache/disk/DiskCache.java
  
  Index: DiskCache.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/cache/disk/DiskCache.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- DiskCache.java	2001/03/07 06:42:27	1.11
  +++ DiskCache.java	2001/05/29 18:47:17	1.12
  @@ -67,7 +67,7 @@
   </p>
   
   @author <A HREF="mailto:burton@apache.org">Kevin A. Burton</A>
  -@version $Id: DiskCache.java,v 1.11 2001/03/07 06:42:27 taylor Exp $
  +@version $Id: DiskCache.java,v 1.12 2001/05/29 18:47:17 sgala Exp $
   */
   public interface DiskCache {
       
  @@ -84,7 +84,7 @@
       the given URL.</p>
       
       @author <A HREF="mailto:burton@apache.org">Kevin A. Burton</A>
  -    @version $Id: DiskCache.java,v 1.11 2001/03/07 06:42:27 taylor Exp $
  +    @version $Id: DiskCache.java,v 1.12 2001/05/29 18:47:17 sgala Exp $
       */
       public DiskCacheEntry getEntry( String url ) throws IOException;
   
  @@ -92,9 +92,9 @@
       <p>Get an Entry from the from the cache but force this URL to be fetched and
       then cached no matter what configuration options Jetspeed provides.
       
  -    @see getEntry( String url )
  +    @see #getEntry( String url )
       @author <A HREF="mailto:burton@apache.org">Kevin A. Burton</A>
  -    @version $Id: DiskCache.java,v 1.11 2001/03/07 06:42:27 taylor Exp $
  +    @version $Id: DiskCache.java,v 1.12 2001/05/29 18:47:17 sgala Exp $
       */
       public DiskCacheEntry getEntry( String url,
                                       boolean force ) throws IOException;
  @@ -110,7 +110,7 @@
       the given URL.</p>
       
       @author <A HREF="mailto:burton@apache.org">Kevin A. Burton</A>
  -    @version $Id: DiskCache.java,v 1.11 2001/03/07 06:42:27 taylor Exp $
  +    @version $Id: DiskCache.java,v 1.12 2001/05/29 18:47:17 sgala Exp $
       */
       public DiskCacheEntry getEntry( String url, Reader is ) throws IOException;
       
  @@ -118,7 +118,7 @@
       Get a list of all the documents within the cache...
       
       @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
  -    @version $Id: DiskCache.java,v 1.11 2001/03/07 06:42:27 taylor Exp $
  +    @version $Id: DiskCache.java,v 1.12 2001/05/29 18:47:17 sgala Exp $
       */
       public DiskCacheEntry[] getEntries();
   
  @@ -126,7 +126,7 @@
       Add this URL to the disk cache
       
       @author <A HREF="mailto:burton@apache.org">Kevin A. Burton</A>
  -    @version $Id: DiskCache.java,v 1.11 2001/03/07 06:42:27 taylor Exp $
  +    @version $Id: DiskCache.java,v 1.12 2001/05/29 18:47:17 sgala Exp $
       */
       public void add( String url ) throws IOException;
       
  @@ -134,7 +134,7 @@
       Remove this URL from the disk cache.
       
       @author <A HREF="mailto:burton@apache.org">Kevin A. Burton</A>
  -    @version $Id: DiskCache.java,v 1.11 2001/03/07 06:42:27 taylor Exp $
  +    @version $Id: DiskCache.java,v 1.12 2001/05/29 18:47:17 sgala Exp $
       */
       public void remove( String url ) throws IOException;
       
  @@ -143,7 +143,7 @@
       Get the URL from the Internet and then place it in the File dest.
       
       @author <A HREF="mailto:burton@apache.org">Kevin A. Burton</A>
  -    @version $Id: DiskCache.java,v 1.11 2001/03/07 06:42:27 taylor Exp $
  +    @version $Id: DiskCache.java,v 1.12 2001/05/29 18:47:17 sgala Exp $
       */
       public String fetch( String url, String destination ) throws IOException ;
   
  @@ -151,7 +151,7 @@
       Return the root of this DiskCache.
       
       @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
  -    @version $Id: DiskCache.java,v 1.11 2001/03/07 06:42:27 taylor Exp $
  +    @version $Id: DiskCache.java,v 1.12 2001/05/29 18:47:17 sgala Exp $
       */
       public String getRoot();
   
  @@ -160,7 +160,7 @@
       a threaded and asynchronous manner.
       
       @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
  -    @version $Id: DiskCache.java,v 1.11 2001/03/07 06:42:27 taylor Exp $
  +    @version $Id: DiskCache.java,v 1.12 2001/05/29 18:47:17 sgala Exp $
       */
       public void refresh( String url );
   
  @@ -168,7 +168,7 @@
       Ask if a url is in the DiskCache  
       
       @author <a href="mailto:sgala@hisitech.com">Santiago Gala</a>
  -    @version $Id: DiskCache.java,v 1.11 2001/03/07 06:42:27 taylor Exp $
  +    @version $Id: DiskCache.java,v 1.12 2001/05/29 18:47:17 sgala Exp $
       */
       public boolean isCached( String url );
   
  
  
  
  1.8       +15 -15    jakarta-jetspeed/src/java/org/apache/jetspeed/cache/disk/DiskCacheEntry.java
  
  Index: DiskCacheEntry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/cache/disk/DiskCacheEntry.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DiskCacheEntry.java	2001/03/07 06:42:30	1.7
  +++ DiskCacheEntry.java	2001/05/29 18:47:19	1.8
  @@ -60,15 +60,15 @@
   Interface for a DiskCacheEntry.
   
   @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
  -@version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +@version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
   */
   public interface DiskCacheEntry {
   
       /**
  -    Get the URL that is in the cache... as local.
  +    Get the URL that was cached.
       
       @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       */
       public String getURL();
       
  @@ -76,14 +76,14 @@
       Get the original URL this came from
       
       @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       */
       public String getSourceURL();
   
       /**
       Get a File which is representative of this item in the cache
       @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       @deprecated 
       @use We should use getInputStream (preferred) or getData instead
       */
  @@ -93,7 +93,7 @@
       Get the contents/data of this URL
       
       @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       */
       public String getData() throws IOException;
   
  @@ -101,7 +101,7 @@
       Get an InputStream for this Entry.
   
       @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       */
       public InputStream getInputStream() throws IOException;
   
  @@ -110,7 +110,7 @@
       It should take into account the character encoding.
   
       @author <a href="mailto:sgala@hisitech.com">Santiago Gala</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       */
       public Reader getReader() throws IOException;
       
  @@ -120,49 +120,49 @@
   	It will throw an exception if the entry is not writable
   
       @author <a href="mailto:sgala@hisitech.com">Santiago Gala</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       */
       public Writer getWriter() throws IOException;
       
       /**
       Get  the lastModified date of this  DiskCacheEntry
       @author <a href="mailto:sgala@hisitech.com">Santiago Gala</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       */
       public long getLastModified();
   
       /**
       Set  the lastModified date of this  DiskCacheEntry
       @author <a href="mailto:sgala@hisitech.com">Santiago Gala</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       */
       public void setLastModified(long time);
   
       /**
       Get the expiration time of this  DiskCacheEntry
       @author <a href="mailto:sgala@hisitech.com">Santiago Gala</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       */
       public long getExpirationTime();
   
       /**
       Set the expiration time of this  DiskCacheEntry
       @author <a href="mailto:sgala@hisitech.com">Santiago Gala</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       */
       public void setExpirationTime(long time);
   
       /**
       Test if the entry is expired
       @author <a href="mailto:sgala@hisitech.com">Santiago Gala</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       */
       public boolean hasExpired();
   
       /**
       Test if the entry is a Local (fake) disk cache entry
       @author <a href="mailto:sgala@hisitech.com">Santiago Gala</a>
  -    @version $Id: DiskCacheEntry.java,v 1.7 2001/03/07 06:42:30 taylor Exp $
  +    @version $Id: DiskCacheEntry.java,v 1.8 2001/05/29 18:47:19 sgala Exp $
       */
       public boolean isLocal();
   
  
  
  
  1.26      +2 -2      jakarta-jetspeed/src/java/org/apache/jetspeed/cache/disk/JetspeedDiskCacheEntry.java
  
  Index: JetspeedDiskCacheEntry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/cache/disk/JetspeedDiskCacheEntry.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- JetspeedDiskCacheEntry.java	2001/03/07 06:42:33	1.25
  +++ JetspeedDiskCacheEntry.java	2001/05/29 18:47:21	1.26
  @@ -101,7 +101,7 @@
    *
    *@author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
    *@author <a href="mailto:sgala@hisitech.com">Santiago Gala</a>
  - *@version $Id: JetspeedDiskCacheEntry.java,v 1.25 2001/03/07 06:42:33 taylor Exp $
  + *@version $Id: JetspeedDiskCacheEntry.java,v 1.26 2001/05/29 18:47:21 sgala Exp $
    **/
   public class JetspeedDiskCacheEntry implements DiskCacheEntry {
   
  @@ -132,7 +132,7 @@
        *
        *
        */
  -    public JetspeedDiskCacheEntry( File file ) {
  +    protected JetspeedDiskCacheEntry( File file ) {
           this.setFile( file );
           this.setURL( this.getSourceURL() );
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message