|
@@ -238,13 +238,15 @@ public class HttpServer implements FilterContainer {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Add an internal servlet in the server.
|
|
|
+ * Add an internal servlet in the server.
|
|
|
+ * Note: This method is to be used for adding servlets that facilitate
|
|
|
+ * internal communication and not for user facing functionality. For
|
|
|
+ * servlets added using this method, filters are not enabled.
|
|
|
+ *
|
|
|
* @param name The name of the servlet (can be passed as null)
|
|
|
* @param pathSpec The path spec for the servlet
|
|
|
* @param clazz The servlet class
|
|
|
- * @deprecated this is a temporary method
|
|
|
*/
|
|
|
- @Deprecated
|
|
|
public void addInternalServlet(String name, String pathSpec,
|
|
|
Class<? extends HttpServlet> clazz) {
|
|
|
ServletHolder holder = new ServletHolder(clazz);
|