public interface Context
| Modifier and Type | Method and Description |
|---|---|
AppConfig |
appConfig()
Returns application configuration.
|
SharedData |
appData()
Returns application shared data map.
|
java.nio.file.Path |
assetsFile(java.lang.String fileName)
Returns assets file from
assets folder. |
java.util.List<java.nio.file.Path> |
assetsFiles(java.lang.String... glob)
Returns assets files from
assets folder that matches
provided glob patterns. |
java.util.List<java.nio.file.Path> |
assetsFiles(java.lang.String rootFolder,
java.lang.String glob)
Returns static files from
rootFolder that matches provided
glob pattern. |
java.lang.String |
id()
Returns context id.
|
SocketIO |
io()
Returns the socket io server.
|
java.nio.file.Path |
webFile(java.lang.String fileName)
Returns single file from
web folder. |
java.util.List<java.nio.file.Path> |
webFiles(java.lang.String... glob)
Returns static files from
web folder that matches provided
glob patterns. |
java.util.List<java.nio.file.Path> |
webFiles(java.lang.String rootFolder,
java.lang.String glob)
Returns static files from
rootFolder that matches provided
glob pattern. |
AppConfig appConfig()
SharedData appData()
java.nio.file.Path assetsFile(java.lang.String fileName)
assets folder.java.util.List<java.nio.file.Path> assetsFiles(java.lang.String... glob)
assets folder that matches
provided glob patterns.java.util.List<java.nio.file.Path> assetsFiles(java.lang.String rootFolder,
java.lang.String glob)
rootFolder that matches provided
glob pattern.java.lang.String id()
SocketIO io()
java.nio.file.Path webFile(java.lang.String fileName)
web folder. Returns
null if file does not exist.java.util.List<java.nio.file.Path> webFiles(java.lang.String... glob)
web folder that matches provided
glob patterns.java.util.List<java.nio.file.Path> webFiles(java.lang.String rootFolder,
java.lang.String glob)
rootFolder that matches provided
glob pattern.