You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Adam Murdoch <ad...@apache.org> on 2003/06/24 12:07:32 UTC

Re: [VFS][PATCH] URLFileObject

Hi,

This has been committed.  Thanks for the patch (and for your patience).

On Sun, 11 May 2003 04:56 am, Anthony Eden wrote:
> I added the following to the URLFileObject to support getting the last
> modified time:
>
>     protected long doGetLastModifiedTime() throws Exception
>     {
>         URLConnection conn = url.openConnection();
>         conn.connect();
>         return conn.getLastModified();
>     }
>
> Sincerely,
> Anthony Eden
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org

-- 
Adam


RE: [VFS][PATCH] URLFileObject

Posted by Adam Jack <aj...@TrySybase.com>.
Thanks for doing this Adam, but is this the full patch? I think there became
a problem if the open/connected sockets weren't closed. Anthony wrote a more
comprehensive fix that included that.

Also, did you get the exists() fix in there also?

BTW: Could you check to see if there is an entry in bugzilla for VFS? I'd
like to submit bug reports/patches properly through that. Last time I tried
there was no entry.

Thanks in advance.

regards

Adam
-----Original Message-----
From: Adam Murdoch [mailto:adammurdoch@apache.org]
Sent: Tuesday, June 24, 2003 4:08 AM
To: Jakarta Commons Users List
Subject: Re: [VFS][PATCH] URLFileObject



Hi,

This has been committed.  Thanks for the patch (and for your patience).

On Sun, 11 May 2003 04:56 am, Anthony Eden wrote:
> I added the following to the URLFileObject to support getting the last
> modified time:
>
>     protected long doGetLastModifiedTime() throws Exception
>     {
>         URLConnection conn = url.openConnection();
>         conn.connect();
>         return conn.getLastModified();
>     }
>
> Sincerely,
> Anthony Eden
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org

--
Adam


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