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()
Asset
GET /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 Asset
public boolean exists()
Copyright © 2015. All rights reserved.