* @param name The FileName.
* @return The encoded URL String.
*/
private String hrefString(final URLFileName name)
{
final URLFileName newFile = new URLFileName("http", name.getHostName(), name.getPort(),
name.getDefaultPort(), null, null,
name.getPath(), name.getType(), name.getQueryString());
try
{
return newFile.getURIEncoded(this.getUrlCharset());
}
catch (final Exception e)
{
return name.getURI();
}