code: public Response serve( String uri, String method, Properties header, Properties parms )
    {
      myOut.println( method + " '" + uri + "' " );
  
      Enumeration e = header.propertyNames();
      while ( e.hasMoreElements())
      {
        String value = (String)e.nextElement();
        myOut.println( "  HDR: '" + value + "' = '" +
            header.getProperty( value ) + "'" );
      }
      e = parms.propertyNames();
      while ( e.hasMoreElements())
      {
        String value = (String)e.nextElement();
        myOut.println( "  PRM: '" + value + "' = '" +
            parms.getProperty( value ) + "'" );
      }
  
      return serveFile( uri, header, myRootDir, true );
    }
docs: Override this to customize the server.<p>
  
  (By default, this delegates to serveFile() and allows directory listing.)
  
  @param uri	Percent-decoded URI without parameters, for example "/index.cgi"
  @param method	"GET", "POST" etc.
  @param parms	Parsed, percent decoded parameters from URI and, in case of POST, data.
  @param header	Header entries, percent decoded
  @return HTTP response, see class Response for details