-
-
Notifications
You must be signed in to change notification settings - Fork 0
html
Roland Schuller edited this page Apr 4, 2019
·
1 revision
You want to show static HTML Data? (js, css, html, ...)
server.getRootEndpoint().addSubPath(new RestPath("html")).setCatchAllEndPoint(new StaticFileEndpoint(new File("/www/yourhtmlfiles"), new NoCachePolicy()));
//or directly from the Jar
server.getRootEndpoint().addSubPath("html").setCatchAllEndPoint(new StaticResourceEndpoint("/html/backend", new NoCachePolicy()));
By now you have two cache policies
- NoCachePolicy
- FullCachePolicy
Write your own if you need it.