commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/url UrlFileObject.java UrlFileSystem.java
Date Tue, 24 Jun 2003 10:34:43 GMT
adammurdoch    2003/06/24 03:34:43

  Modified:    vfs/src/java/org/apache/commons/vfs/provider/url
                        UrlFileObject.java UrlFileSystem.java
  Log:
  Add support for getting last modified time to UrlFileObject.
  
  Patch submitted by Anthony Eden.
  
  Revision  Changes    Path
  1.7       +10 -1     jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/url/UrlFileObject.java
  
  Index: UrlFileObject.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/url/UrlFileObject.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- UrlFileObject.java	23 Feb 2003 00:40:39 -0000	1.6
  +++ UrlFileObject.java	24 Jun 2003 10:34:41 -0000	1.7
  @@ -125,6 +125,15 @@
       }
   
       /**
  +     * Returns the last modified time of this file.
  +     */
  +    protected long doGetLastModifiedTime()
  +        throws Exception
  +    {
  +        return url.openConnection().getLastModified();
  +    }
  +
  +    /**
        * Lists the children of the file.
        */
       protected String[] doListChildren() throws Exception
  
  
  
  1.13      +2 -1      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/url/UrlFileSystem.java
  
  Index: UrlFileSystem.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/url/UrlFileSystem.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- UrlFileSystem.java	21 Feb 2003 13:09:00 -0000	1.12
  +++ UrlFileSystem.java	24 Jun 2003 10:34:42 -0000	1.13
  @@ -92,5 +92,6 @@
       {
           caps.add( Capability.READ_CONTENT );
           caps.add( Capability.URI );
  +        caps.add( Capability.GET_LAST_MODIFIED );
       }
   }
  
  
  

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


Mime
View raw message