users@jersey.java.net

[Jersey] Re: exposing some Javascript and HTML via HttpServerFactory

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Wed, 19 Dec 2012 11:57:22 +0100

Hi Richard,

pls. take a look at this thread.

http://jersey.576304.n2.nabble.com/Grizzly-Jersey-REST-and-static-HTML-td7079979.html

WBR,
Alexey.

On 12/19/2012 11:36 AM, rjdkolb_at_gmail.com wrote:
> 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.