org.apache.tapestry.web
Class WebContextResource

java.lang.Object
  extended by org.apache.hivemind.util.AbstractResource
      extended by org.apache.tapestry.web.WebContextResource
All Implemented Interfaces:
Resource

public class WebContextResource
extends AbstractResource

Implementation of Resourcefor resources found within a WebContext.

Since:
4.0
Author:
Howard Lewis Ship

Constructor Summary
WebContextResource(WebContext context, String path)
           
WebContextResource(WebContext context, String path, Locale locale)
           
 
Method Summary
 Resource getLocalization(Locale locale)
          Locates the resource using LocalizedWebContextResourceFinderand ServletContext#getResource(java.lang.String).
 URL getResourceURL()
           
 int hashCode()
           
protected  Resource newResource(String path)
           
 String toString()
           
 
Methods inherited from class org.apache.hivemind.util.AbstractResource
equals, getLocale, getName, getPath, getRelativeResource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebContextResource

public WebContextResource(WebContext context,
                          String path)

WebContextResource

public WebContextResource(WebContext context,
                          String path,
                          Locale locale)
Method Detail

getLocalization

public Resource getLocalization(Locale locale)
Locates the resource using LocalizedWebContextResourceFinderand 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 Resource newResource(String path)
Specified by:
newResource in class AbstractResource


Copyright © 2006 Apache Software Foundation. All Rights Reserved.