public class ContextAsset extends AbstractAsset implements IAsset
ServletContext
containing the
application.Constructor and Description |
---|
ContextAsset(java.lang.String contextPath,
org.apache.hivemind.Resource resource,
org.apache.hivemind.Location location,
IRequestCycle cycle) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildURL()
Generates a URL for the client to retrieve the asset.
|
java.io.InputStream |
getResourceAsStream()
Accesses the localized version of the resource (if possible) and returns it as an input
stream.
|
getLocation, getResourceLocation, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getResourceLocation
public ContextAsset(java.lang.String contextPath, org.apache.hivemind.Resource resource, org.apache.hivemind.Location location, IRequestCycle cycle)
public java.lang.String buildURL()
public java.io.InputStream getResourceAsStream()
IAsset
page
is returned.getResourceAsStream
in interface IAsset