org.apache.tapestry.web
Class WebContextResource
java.lang.Object
org.apache.hivemind.util.AbstractResource
org.apache.tapestry.web.WebContextResource
- All Implemented Interfaces:
- org.apache.hivemind.Resource
public class WebContextResource
- extends org.apache.hivemind.util.AbstractResource
Implementation of Resource
for resources found within a
WebContext
.
- Since:
- 4.0
- Author:
- Howard Lewis Ship
Methods inherited from class org.apache.hivemind.util.AbstractResource |
equals, getLocale, getName, getPath, getRelativeResource |
WebContextResource
public WebContextResource(WebContext context,
String path)
WebContextResource
public WebContextResource(WebContext context,
String path,
Locale locale)
getLocalization
public org.apache.hivemind.Resource getLocalization(Locale locale)
- Locates the resource using
LocalizedWebContextResourceFinder
and
ServletContext.getResource(java.lang.String)
.
getResourceURL
public URL getResourceURL()
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
newResource
protected org.apache.hivemind.Resource newResource(String path)
- Specified by:
newResource
in class org.apache.hivemind.util.AbstractResource
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.