org.apache.tapestry.web
Class WebContextResource

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

public class WebContextResource
extends org.apache.hivemind.util.AbstractResource

Implementation of Resourcefor resources found within a WebContext.

Since:
4.0
Author:
Howard Lewis Ship

Constructor Summary
WebContextResource(WebContext context, java.lang.String path)
           
WebContextResource(WebContext context, java.lang.String path, java.util.Locale locale)
           
 
Method Summary
 org.apache.hivemind.Resource getLocalization(java.util.Locale locale)
          Locates the resource using LocalizedWebContextResourceFinderand ServletContext#getResource(java.lang.String).
 java.net.URL getResourceURL()
           
 int hashCode()
           
protected  org.apache.hivemind.Resource newResource(java.lang.String path)
           
 java.lang.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,
                          java.lang.String path)

WebContextResource

public WebContextResource(WebContext context,
                          java.lang.String path,
                          java.util.Locale locale)
Method Detail

getLocalization

public org.apache.hivemind.Resource getLocalization(java.util.Locale locale)
Locates the resource using LocalizedWebContextResourceFinderand ServletContext#getResource(java.lang.String).


getResourceURL

public java.net.URL getResourceURL()

toString

public java.lang.String toString()

hashCode

public int hashCode()

newResource

protected org.apache.hivemind.Resource newResource(java.lang.String path)