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

        PrintWriter pw = new PrintWriter(new OutputStreamWriter(rs.getResponse().getOutputStream(), Util.UTF8));
        printCatalog(rs, pw);
        pw.flush();
        rs.getResponse().setStatus(HttpServletResponse.SC_OK);

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

        PrintWriter pw = new PrintWriter(new OutputStreamWriter(rs.getResponse().getOutputStream(), Util.UTF8));
        printCatalog(rs, pw);
        pw.flush();
        rs.getResponse().setStatus(HttpServletResponse.SC_OK);

    }
Handler for OPeNDAP catalog.xml requests.

@param rs The client's <code> ReqState </code>
@see GetHTMLInterfaceHandler