Skip to content
Roland Schuller edited this page Apr 4, 2019 · 1 revision

HTML Endpoints

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.

Clone this wiki locally