opendap/dtswar/src/main/java/opendap/dts/DTSServlet.java
public void doGetDIR(ReqState rs)
            throws Exception
    {
        rs.getResponse().setHeader("XDODS-Server", getServerVersion());
        rs.getResponse().setContentType("text/html");
        rs.getResponse().setHeader("Content-Description", "dods-directory");

        try {
            GetDirHandler di = new GetDirHandler();
            di.sendDIR(rs);
            rs.getResponse().setStatus(HttpServletResponse.SC_OK);
        } catch (ParseException pe) {
            parseExceptionHandler(pe, rs.getResponse());
        } catch (DAP2Exception de) {
            dap2ExceptionHandler(de, rs.getResponse());
        } catch (Throwable t) {
            anyExceptionHandler(t, rs);
        }

    }
public void doGetDIR(ReqState rs)
            throws Exception
    {
        rs.getResponse().setHeader("XDODS-Server", getServerVersion());
        rs.getResponse().setContentType("text/html");
        rs.getResponse().setHeader("Content-Description", "dods-directory");

        try {
            GetDirHandler di = new GetDirHandler();
            di.sendDIR(rs);
            rs.getResponse().setStatus(HttpServletResponse.SC_OK);
        } catch (ParseException pe) {
            parseExceptionHandler(pe, rs.getResponse());
        } catch (DAP2Exception de) {
            dap2ExceptionHandler(de, rs.getResponse());
        } catch (Throwable t) {
            anyExceptionHandler(t, rs);
        }

    }
Handler for the client's directory request.
<p>
Returns an html document to the client showing (a possibly pseudo)
listing of the datasets available on the server in a directory listing
format.
<p>
The bulk of this code resides in the class opendap.servlet.GetDirHandler and
documentation may be found there.

@param rs The client's <code> ReqState</code>
@see opendap.servlet.GetDirHandler