public interface Asset
Jooby.assets(String)
Modifier and Type | Method and Description |
---|---|
default String |
etag() |
long |
lastModified() |
long |
length() |
String |
name()
Examples:
|
String |
path()
Examples:
|
InputStream |
stream() |
MediaType |
type() |
String name()
GET /assets/index.js -> index.js GET /assets/js/index.js -> index.js
String path()
GET /assets/index.js -> /assets/index.js GET /assets/js/index.js -> /assets/js/index.js
default String etag()
path()
, lastModified()
and
length()
.long length()
-1
if undefined.long lastModified()
InputStream stream() throws Exception
Exception
- If content can't be read it.MediaType type()
Copyright © 2015. All rights reserved.