URL doesn't, but URLConnection does.  In the case of http it's part of the
headers, so you'd have to re-establish the connection each time you want to
check.  That's a lot of overhead, but may be worth it.

-Jim Moore


-----Original Message-----
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 5:50 PM
To: LOG4J Users Mailing List
Subject: Re: desire PropertyConfigurator.configureAndWatch(URL) method


At 12:47 01.02.2001 -0800, you wrote:
>Since PropertyConfiguator class
>(http://jakarta.apache.org/log4j/javadoc/org/apache/log4j/PropertyConfigura
t
>or.html) has:
>public static void configure(URL
><http://java.sun.com/products/jdk/1.2/docs/api/java/net/URL.html>
configURL)
>
>it would be nice to have a version of configureAndWatch that takes a URL.

The File class offers the lastModified method which makes it easy to check
if a file has changed.
URL don't offer a method to check if they have changed. Thus it is not
possible to implement the variant you are asking for. Ceki 

----
Ceki Gülcü - Independent IT Consultant


av. de Rumine 5            Tel: ++41 21 351 23 15   
CH-1005 Lausanne        e-mail: [EMAIL PROTECTED]  or
Switzerland                     [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to