response.setHeader("XDODS-Server", rs.getXDODSServer()); response.setHeader("XOPeNDAP-Server", rs.getXOPeNDAPServer()); response.setHeader("XDAP", rs.getXDAP(request));
response.setHeader("XDODS-Server", odh.getXDODSServerVersion()); response.setHeader("XOPeNDAP-Server", odh.getXOPeNDAPServerVersion()); response.setHeader("XDAP", odh.getXDAPVersion(request));
    public void badURL(HttpServletRequest request,                       HttpServletResponse response,                       ReqState rs)            throws IOException, ServletException {        if (Debug.isSet("showResponse"))            System.out.println("Sending Bad URL Page.");        response.setContentType("text/html");        response.setHeader("XDODS-Server", rs.getXDODSServer());        response.setHeader("XOPeNDAP-Server", rs.getXOPeNDAPServer());        response.setHeader("XDAP", rs.getXDAP(request));        response.setHeader("Content-Description", "BadURL");        // Commented because of a bug in the OPeNDAP C++ stuff...        //response.setHeader("Content-Encoding", "plain");        PrintWriter pw = new PrintWriter(new OutputStreamWriter(response.getOutputStream()));        pw.println("<h3>Error in URL</h3>");        pw.println("The URL extension did not match any that are known by this");        pw.println("server. Below is a list of the five extensions that are be recognized by");        pw.println("all OPeNDAP servers. If you think that the server is broken (that the URL you");        pw.println("submitted should have worked), then please contact the");        pw.println("OPeNDAP user support coordinator at: ");        pw.println("<a href=\"mailto:support@unidata.ucar.edu\">support@unidata.ucar.edu</a><p>");        pw.flush();        response.setStatus(HttpServletResponse.SC_OK);    }