Hey all,
Congratulations on the server---it has been a joy to find and use.
In passing...
The 'ServletAdaptor' javadocs are unintelligible---the intro paragraph
could use a quick edit:
https://grizzly.dev.java.net/nonav/apidocs/ ...
... com/sun/grizzly/http/servlet/ServletAdapter.html
If someone could point me towards the right strategy and docs for the
following issue, I would appreciate the lead.
We are building servers and have traditionally done this in a full scale
container. (They are free software servers providing geospatial data,
notably satellite imagery, according to ISO norms.)
Recently, I started using Grizzly and got things working with the
SelectorThread approach.
SelectorThread t;
try {
t = GrizzlyWebContainerFactory.create(uri,
GrizzlyWebContainerProperties);
...
Now I'd like to add on the ability to serve some basic web pages at the
root of the resource tree and, ideally, at the root of each context. For
example, if we run our servers at the contexts:
/wms
/wcs
/sos
/csw
I'd like a user who hits '
http://server:port/' to get a web page telling
them a minimum of what is going on. That is, I'd like to have a simple
web page for the / context. From Jean-Francois Arcand's blog, I see that
a different approach to launching the server, 'new GrizzlyWebServer',
allows one to combine servlets and static pages, but I don't quite see
how to mix in Jersey based services. Are there any docs you could point
me to?
As an extra issue, I'd also like the user to get a service specific page
if they hit one of the raw context roots, e.g. /wms . All our services
require url parameters to work so we are looking for parameters, e.g.
?request=GetCapabilities&service=wms&version=1.1.1
to do any buisness logic. I can readily get programatic control if the
user doesn't send any parameters but I'm not sure then how to serve up a
web page other than pure text, i.e. I don't understand how to provide
access to images for the web page. Once again, any pointers would be
appreciated.
Please respond directly to me since I am not on the list,
thank you sincerely,
--adrian custer