StringBuffer buf = HttpUtils.getRequestURL(request);
StringBuffer buf = request.getRequestURL();
    public void execute(  HttpServletRequest request, 			  HttpServletResponse response) throws IOException, ServletException     {            /*this.out = response.getOutputStream();            // create a URL parameter visitor      ServletUtil.ParamVisitor vis =         new ServletUtil.ParamVisitor() {	    public void setParam(String name, String value) {	       There is no mode, as it only returns the list of agent	       names, so do nothing but set up for parameter parsing.   	       	  	    }	  };            // visit the URL parameters      ServletUtil.parseParams(vis, request);      */      if( request.getQueryString() == null) {	response.setStatus(			   HttpServletResponse.SC_OK);      }            // check for illegal arguments      if( request.getQueryString() != null) {	response.sendError(			   HttpServletResponse.SC_BAD_REQUEST,			   "<html><body><br><font size=4>" + 			   "<font size = 5><B>" + 			   request.getQueryString() + 			   "</B></font>" +			   " Is Not A Legal Parameter List<br>" + 			   "This servlet expects no parameters" +			   "</font></body></html>");      }            this.out = response.getOutputStream();            // get the list of urls and return them       try {	Vector urls = new Vector();	Vector names = new Vector();	StringBuffer buf = HttpUtils.getRequestURL(request);	String url = buf.toString();	//System.out.println("URL: " + url);		// get all agent names; reconstruct the urls and return	getAllNamesAndUrls(urls, names, url, false);		//System.out.println("Got urls: " + urls);	// send the urls to the client	ObjectOutputStream p = new ObjectOutputStream(out);	p.writeObject(urls);	//System.out.println("Sent agent urls");      } catch (Exception e) {	System.out.println("Exception: " + e);      }    }