HTMLURLs
| Name | HTMLURLs |
| Version | 1.0.003 |
| Date | 2005-03-30 |
| Author | Nicola Asuni |
| Copyright | Tecnick.com S.r.l. Via Ugo Foscolo n.19 09045 Quartu Sant'Elena (CA) ITALY www.tecnick.com |
| License | GNU LESSER GENERAL PUBLIC LICENSE v.2.1 |
Source Code and Documentation
Description
HTMLURLs is an Open Source Java class that contains a collection of static utility methods to manipulate and convert URL (Uniform Resource Locator) addresses from java.lang.String to java.net.URL objects and vice versa.The HTMLURLs class is very useful in Web-based application development because speeds up the URLs manipulation, that is a common task.
The HTMLURLs main features are:
- allows set up a java.net.URL object starting from various String representation;
- checks if an URL is absolute or relative to the current local path;
- get full canonical URL address by resolving various combined relative paths (e.g.: "http://www.site.com/dir/subdir/../image.gif" became "http://www.site.com/dir/image.gif"); this last case resolve a very common problem in Web-applications.
This project is shipped as Eclipse project, with classes compiled into the "classes" directory.
However a packaged version of this class is available as a JAR archive inside the www directory.
To install the JAR file, just copy it on your project classpath.
Documentation and examples are included on the distribution.
Download HTMLURLs from SourceForge