org.backsource.utils.resource
Interface URLFactory

All Known Implementing Classes:
ClassContextURLFactory, ServletContextURLFactory, ValidURLFactory

public interface URLFactory

Return a valid URL from URI.

An URLFactory is used by the URIFactory to translate an URI into an URL. The YRLFactory is not allowed to use the URI.getURL() to construct an url, but must know how to decode the URI:s part to find its resource.

A particualar URL factory covers resources/URI:s by a specific scheme, wich it knows how to look up. The usage is to register an URLFactory with the URIFactory for a specific schema.

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

Method Summary
 java.net.URL getURL(URI uri)
          Contstruct an URL from URI without using uri.getURL().
 

Method Detail

getURL

public java.net.URL getURL(URI uri)
                    throws java.net.MalformedURLException
Contstruct an URL from URI without using uri.getURL().

Throws:
java.net.MalformedURLException


Copyright © 2000-2004 Backsource. All Rights Reserved.