org.apache.tapestry.resource
Class ClasspathResourceLocation
java.lang.Object
|
+--org.apache.tapestry.resource.AbstractResourceLocation
|
+--org.apache.tapestry.resource.ClasspathResourceLocation
- All Implemented Interfaces:
- IResourceLocation
- public class ClasspathResourceLocation
- extends AbstractResourceLocation
Implementation of IResourceLocation
for resources found within the classpath.
- Since:
- 3.0
- Version:
- $Id: ClasspathResourceLocation.java,v 1.4 2003/06/29 18:05:41 mindbridge Exp $
- Author:
- Howard Lewis Ship
ClasspathResourceLocation
public ClasspathResourceLocation(IResourceResolver resolver,
String path)
ClasspathResourceLocation
public ClasspathResourceLocation(IResourceResolver resolver,
String path,
Locale locale)
getLocalization
public IResourceLocation getLocalization(Locale locale)
- Locates the localization of the
resource using
LocalizedResourceFinder
- Following copied from interface:
org.apache.tapestry.IResourceLocation
- Parameters:
locale
- to localize for, or null for no localization.- Returns:
- a localized version of this resource, of null if the resource
itself does not exist.
getResourceURL
public URL getResourceURL()
- Invokes IResourceResolver#getResource(String)
- Following copied from interface:
org.apache.tapestry.IResourceLocation
- Returns:
- the URL for the resource if it exists, or null if it does not
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
buildNewResourceLocation
protected IResourceLocation buildNewResourceLocation(String path)
- Overrides:
buildNewResourceLocation
in class AbstractResourceLocation