opendap/dtswar/src/main/java/opendap/dts/DTSServlet.java
public void badURL(HttpServletRequest request, HttpServletResponse response)
            throws Exception
    {
        if(Debug.isSet("showResponse")) {
            log.debug("Sending Bad URL Page.");
        }

        //log.info("DODSServlet.badURL " + rs.getRequest().getRequestURI());

        response.setContentType("text/html");
        response.setHeader("XDODS-Server", getServerVersion());
        response.setHeader("Content-Description", "dods-error");
        // Commented because of a bug in the OPeNDAP C++ stuff...
        //rs.getResponse().setHeader("Content-Encoding", "plain");

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

        printBadURLPage(pw);
        printHelpPage(pw);
        pw.flush();

        response.setStatus(HttpServletResponse.SC_OK);

    }
public void badURL(HttpServletRequest request, HttpServletResponse response)
            throws Exception
    {
        if(Debug.isSet("showResponse")) {
            log.debug("Sending Bad URL Page.");
        }

        //log.info("DODSServlet.badURL " + rs.getRequest().getRequestURI());

        response.setContentType("text/html");
        response.setHeader("XDODS-Server", getServerVersion());
        response.setHeader("Content-Description", "dods-error");
        // Commented because of a bug in the OPeNDAP C++ stuff...
        //rs.getResponse().setHeader("Content-Encoding", "plain");

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

        printBadURLPage(pw);
        printHelpPage(pw);
        pw.flush();

        response.setStatus(HttpServletResponse.SC_OK);

    }
public void badURL ( HttpServletRequest request , HttpServletResponse response ) throws Exception { if ( Debug . isSet ( "showResponse" ) ) { log . debug ( "Sending Bad URL Page." ) ; } //log.info("DODSServlet.badURL " + rs.getRequest().getRequestURI()); response . setContentType ( "text/html" ) ; response . setHeader ( "XDODS-Server" , getServerVersion ( ) ) ; response . setHeader ( "Content-Description" , "dods-error" ) ; // Commented because of a bug in the OPeNDAP C++ stuff... //rs.getResponse().setHeader("Content-Encoding", "plain"); PrintWriter pw = new PrintWriter ( new OutputStreamWriter ( response . getOutputStream ( ) , Util . UTF8 ) ) ; printBadURLPage ( pw ) ; printHelpPage ( pw ) ; pw . flush ( ) ; response . setStatus ( HttpServletResponse . SC_OK ) ; }
Sends an html document to the client explaining that they have used a
poorly formed URL and then the help page...

@param request  The client's <code> request </code>
@param response The client <code>response</code>
Sends an html document to the client explaining that they have used a poorly formed URL and then the help page ...