Generalize HttpServer addServlet API
-------------------------------------
Key: HADOOP-7600
URL: https://issues.apache.org/jira/browse/HADOOP-7600
Project: Hadoop Common
Issue Type: Improvement
Affects Versions: 0.23.0
Reporter: Luke Lu
Fix For: 0.23.0
HttpServer is a wrapper for servlet containers (JSR-154), which jetty is the
current implementation. HADOOP-7594 violates the abstraction by adding an
implementation specific method addJerseyResource which is tied to a specific
JSR-311 implementation. The motivation for adding the method is probably due to
a lack of generalized addServlet API a la addFilter which takes a map of init
parameters.
The straight forward solution is add a more generalized addServlet API similar
to the existing addFilter API to accommodate the init parameters.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira