KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > jayasoft > ivy > url > AbstractURLHandler


1 /*
2  * This file is subject to the licence found in LICENCE.TXT in the root directory of the project.
3  * Copyright Jayasoft 2005 - All rights reserved
4  *
5  * #SNAPSHOT#
6  */

7 package fr.jayasoft.ivy.url;
8
9 import java.net.URL JavaDoc;
10
11 public abstract class AbstractURLHandler implements URLHandler {
12     public boolean isReachable(URL JavaDoc url) {
13         return getURLInfo(url).isReachable();
14     }
15     public boolean isReachable(URL JavaDoc url, int timeout) {
16         return getURLInfo(url, timeout).isReachable();
17     }
18     public long getContentLength(URL JavaDoc url) {
19         return getURLInfo(url).getContentLength();
20     }
21     public long getContentLength(URL JavaDoc url, int timeout) {
22         return getURLInfo(url, timeout).getContentLength();
23     }
24     
25     public long getLastModified(URL JavaDoc url) {
26         return getURLInfo(url).getLastModified();
27     }
28     public long getLastModified(URL JavaDoc url, int timeout) {
29         return getURLInfo(url, timeout).getLastModified();
30     }
31 }
32
Popular Tags