private void getIndex ( PrintWriter out ) { out . append ( "<html><body>WSDL Index<ul>\n" ) ; Iterator < String > names = _WSDL_PATHS . keySet ( ) . iterator ( ) ; while ( names . hasNext ( ) ) { String name = names . next ( ) ; out . append ( "<li> <a href=\"?api=" + name + "\">" + name + "</a></li>\n" ) ; } out . append ( "</ul></body></html>" ) ; }
Get a simple HTML index pointing to each WSDL file provided by the servlet .