opendap/src/main/java/opendap/servlet/GetDirHandler.java
public void sendDIR(ReqState rs)
            throws opendap.dap.DAP2Exception, ParseException {

        if (_Debug) System.out.println("sendDIR request = " + rs.getRequest());


        try {

            PrintWriter pw = new PrintWriter(new OutputStreamWriter(rs.getResponse().getOutputStream(), Util.UTF8));

            // ignore String ddxCacheDir = rs.getDDXCache(rs.getRootPath());
            String ddsCacheDir = rs.getDDSCache(rs.getRootPath());

            String thisServer = rs.getRequest().getRequestURL().toString();
            pw.println("<html>");
            pw.println("<head>");
            pw.println("<title>OPeNDAP Directory</title>");
            pw.println("<meta http-equiv=\"Content-Type\" content=\"text/html\">");
            pw.println("</head>");

            pw.println("<body bgcolor=\"#FFFFFF\">");


            pw.println("<h1>OPeNDAP Directory for:</h1>");
            pw.println("<h2>" + thisServer + "</h2>");

            // ignore printDIR(pw, ddxCacheDir, "DDX", thisServer);

            printDIR(pw, ddsCacheDir, "DDS", thisServer);
            pw.println("<hr>");
            pw.println("</html>");
            pw.flush();

        } catch (FileNotFoundException fnfe) {
            System.out.println("OUCH! FileNotFoundException: " + fnfe.getMessage());
            fnfe.printStackTrace(System.out);
        } catch (IOException ioe) {
            System.out.println("OUCH! IOException: " + ioe.getMessage());
            ioe.printStackTrace(System.out);
        }


    }
public void sendDIR(ReqState rs)
            throws opendap.dap.DAP2Exception, ParseException {

        if (_Debug) System.out.println("sendDIR request = " + rs.getRequest());


        try {

            PrintWriter pw = new PrintWriter(new OutputStreamWriter(rs.getResponse().getOutputStream(), Util.UTF8));

            // ignore String ddxCacheDir = rs.getDDXCache(rs.getRootPath());
            String ddsCacheDir = rs.getDDSCache(rs.getRootPath());

            String thisServer = rs.getRequest().getRequestURL().toString();
            pw.println("<html>");
            pw.println("<head>");
            pw.println("<title>OPeNDAP Directory</title>");
            pw.println("<meta http-equiv=\"Content-Type\" content=\"text/html\">");
            pw.println("</head>");

            pw.println("<body bgcolor=\"#FFFFFF\">");


            pw.println("<h1>OPeNDAP Directory for:</h1>");
            pw.println("<h2>" + thisServer + "</h2>");

            // ignore printDIR(pw, ddxCacheDir, "DDX", thisServer);

            printDIR(pw, ddsCacheDir, "DDS", thisServer);
            pw.println("<hr>");
            pw.println("</html>");
            pw.flush();

        } catch (FileNotFoundException fnfe) {
            System.out.println("OUCH! FileNotFoundException: " + fnfe.getMessage());
            fnfe.printStackTrace(System.out);
        } catch (IOException ioe) {
            System.out.println("OUCH! IOException: " + ioe.getMessage());
            ioe.printStackTrace(System.out);
        }


    }
public void sendDIR ( ReqState rs ) throws opendap . dap . DAP2Exception , ParseException { if ( _Debug ) System . out . println ( "sendDIR request = " + rs . getRequest ( ) ) ; try { PrintWriter pw = new PrintWriter ( new OutputStreamWriter ( rs . getResponse ( ) . getOutputStream ( ) , Util . UTF8 ) ) ; // ignore String ddxCacheDir = rs.getDDXCache(rs.getRootPath()); String ddsCacheDir = rs . getDDSCache ( rs . getRootPath ( ) ) ; String thisServer = rs . getRequest ( ) . getRequestURL ( ) . toString ( ) ; pw . println ( "<html>" ) ; pw . println ( "<head>" ) ; pw . println ( "<title>OPeNDAP Directory</title>" ) ; pw . println ( "<meta http-equiv=\"Content-Type\" content=\"text/html\">" ) ; pw . println ( "</head>" ) ; pw . println ( "<body bgcolor=\"#FFFFFF\">" ) ; pw . println ( "<h1>OPeNDAP Directory for:</h1>" ) ; pw . println ( "<h2>" + thisServer + "</h2>" ) ; // ignore printDIR(pw, ddxCacheDir, "DDX", thisServer); printDIR ( pw , ddsCacheDir , "DDS" , thisServer ) ; pw . println ( "<hr>" ) ; pw . println ( "</html>" ) ; pw . flush ( ) ; } catch ( FileNotFoundException fnfe ) { System . out . println ( "OUCH! FileNotFoundException: " + fnfe . getMessage ( ) ) ; fnfe . printStackTrace ( System . out ) ; } catch ( IOException ioe ) { System . out . println ( "OUCH! IOException: " + ioe . getMessage ( ) ) ; ioe . printStackTrace ( System . out ) ; } }
************************************************************************
Default handler for OPeNDAP directory requests. Returns an html document
with a list of all datasets on this server with links to their
DDS, DAS, Information, and HTML responses.

@param rs       The request state object for this client request.
@see ReqState
************************************************************************ Default handler for OPeNDAP directory requests . Returns an html document with a list of all datasets on this server with links to their DDS DAS Information and HTML responses .