public class WebContextResource extends org.apache.hivemind.util.AbstractResource
Resource
for resources found within a
WebContext
.Constructor and Description |
---|
WebContextResource(WebContext context,
java.lang.String path) |
WebContextResource(WebContext context,
java.lang.String path,
java.util.Locale locale) |
Modifier and Type | Method and Description |
---|---|
org.apache.hivemind.Resource |
getLocalization(java.util.Locale locale)
Locates the resource using
LocalizedWebContextResourceFinder and
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() |
public WebContextResource(WebContext context, java.lang.String path)
public WebContextResource(WebContext context, java.lang.String path, java.util.Locale locale)
public org.apache.hivemind.Resource getLocalization(java.util.Locale locale)
LocalizedWebContextResourceFinder
and
ServletContext#getResource(java.lang.String)
.public java.net.URL getResourceURL()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected org.apache.hivemind.Resource newResource(java.lang.String path)
newResource
in class org.apache.hivemind.util.AbstractResource