This service can be used to register a Servlet
for all HTTP requests that match a specified String path.
This is analogous to a java.util.Map :
- register with "put(name, value)"
- unregister with "remove(name)"
- unregister-all with "clear()"
"unregisterAll" is called automatically when this service
is released back to the ServiceBroker.
"Servlet.init(..)" will be called upon register
and "Servlet.destroy()" will be called upon unregister.
Also note that multiple concurrent "Servlet.service(..)" calls
can occur, so your Servlet must be reentrant.
See:
http://java.sun.com/docs/books/tutorial/servlets for
tutorials on how to write Servlets and HttpServlets.
|