Open Source Software Solutions

HTMLURLs

NameHTMLURLs
Version1.0.003
Date2005-03-30
AuthorNicola Asuni
CopyrightTecnick.com S.r.l.
Via Ugo Foscolo n.19
09045 Quartu Sant'Elena (CA)
ITALY
www.tecnick.com
LicenseGNU 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

Get HTMLURLs at SourceForge.net. Fast, secure and Free Open Source software downloadsSupport This Project

IT | EN
W3C XHTML 1.0 | W3C CSS 2.0