Asset.Forwarding| Constructor and Description |
|---|
URLAsset(URL url,
String path,
MediaType mediaType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists() |
long |
lastModified() |
long |
length() |
String |
path()
Examples:
|
URL |
resource() |
InputStream |
stream() |
String |
toString() |
MediaType |
type() |
public String path()
AssetGET /assets/index.js -> /assets/index.js GET /assets/js/index.js -> /assets/js/index.js
public URL resource()
public long length()
public InputStream stream() throws Exception
public long lastModified()
lastModified in interface Assetpublic boolean exists()
Copyright © 2017. All rights reserved.