users@jersey.java.net

[Jersey] exposing some Javascript and HTML via HttpServerFactory

From: <rjdkolb_at_gmail.com>
Date: Wed, 19 Dec 2012 10:36:18 +0000 (GMT)

Hello

I would like to expose some HTML and Java script in a pure Java
application using HttpServerFactory.

So far I am exposing my restful webservices with :
static final String BASE_URI = "http://localhost:9999/myapp/";
ResourceConfig rc = new PackagesResourceConfig("org.openrap.services");
HttpServer server = HttpServerFactory.create(BASE_URI, rc);
server.start();

I would like to expose a index.html and abc.js as well.
i.e.
http://localhost:9999/myapp/index.html
http://localhost:9999/myapp/abc.js

How do I do this ?

thanks
Richard.