@ Deprecated public void addInternalServlet ( String name , String pathSpec , Class < ? extends HttpServlet > clazz ) { ServletHolder holder = new ServletHolder ( clazz ) ; if ( name != null ) { holder . setName ( name ) ; } webAppContext . addServlet ( holder , pathSpec ) ; }
Add an internal servlet in the server .