public class ContextAsset extends AbstractAsset implements IAsset
ServletContextcontaining 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetResourceLocationpublic 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()
IAssetpageis returned.getResourceAsStream in interface IAsset