[Simpleweb-Support] How to combine a LoaderEngine with a FileEngine ?
Brought to you by:
niallg
From: R P. <pat...@gm...> - 2007-06-06 20:01:54
|
Hi, I need to configure a server on which I would like to load a service when the URI is: http://hostname:port/my_java_class and be able, with the same loader to return file or directory content whe the URI is: http://hostname:port/www/index.html or more commonly http://hostname:port/www/path_to_a_resource I'm looking for the most elegant manner to do this. Originaly I used a LoaderEngine to load my services but from now I want to get also resources from file system, but if I introduce a FileEngine I don't see how to use it on the same port than my LoaderEngine. Seems it is mandatory to use a new ProtocolHandler working with another connection/port. I'd like to use FileComponent and DirectoryComponent classes but they are private to the package "simple.http.serve". Has someone an idea ? Thanks in advance, Pat |