public class WebContextResource extends org.apache.hivemind.util.AbstractResource
Resourcefor 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
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() |
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)
LocalizedWebContextResourceFinderand
ServletContext#getResource(java.lang.String).public java.net.URL getResourceURL()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected org.apache.hivemind.Resource newResource(java.lang.String path)
newResource in class org.apache.hivemind.util.AbstractResource