Asset.Forwarding
Constructor and Description |
---|
Forwarding(Asset asset) |
Modifier and Type | Method and Description |
---|---|
String |
etag() |
long |
lastModified() |
long |
length() |
String |
name()
Examples:
|
String |
path()
Examples:
|
URL |
resource() |
InputStream |
stream() |
MediaType |
type() |
public Forwarding(Asset asset)
public String etag()
etag
in interface Asset
Asset.path()
, Asset.lastModified()
and
Asset.length()
.public String name()
Asset
GET /assets/index.js -> index.js GET /assets/js/index.js -> index.js
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 long lastModified()
lastModified
in interface Asset
public InputStream stream() throws Exception
Copyright © 2017. All rights reserved.