public HttpServerBuilder contentFrom ( String contextRoot , String contentResource ) { URL resource = resolver . resolve ( contentResource , CallStack . getCallerClass ( ) ) ; resources . put ( contextRoot , resource ) ; return this ; }
Defines a ZIP resource on the classpath that provides the static content the server should host .