opendap/src/main/java/opendap/servlet/AbstractServlet.java
public void badURL(ReqState rs)
          throws Exception {

    if (Debug.isSet("showResponse")) {
      log.debug("Sending Bad URL Page.");
    }

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

    rs.getResponse().setContentType("text/html");
    rs.getResponse().setHeader("XDODS-Server", getServerVersion());
    rs.getResponse().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(rs.getResponse().getOutputStream(), Util.UTF8));

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

    rs.getResponse().setStatus(HttpServletResponse.SC_OK);


  }
public void badURL(ReqState rs)
          throws Exception {

    if (Debug.isSet("showResponse")) {
      log.debug("Sending Bad URL Page.");
    }

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

    rs.getResponse().setContentType("text/html");
    rs.getResponse().setHeader("XDODS-Server", getServerVersion());
    rs.getResponse().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(rs.getResponse().getOutputStream(), Util.UTF8));

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

    rs.getResponse().setStatus(HttpServletResponse.SC_OK);


  }
public void badURL ( ReqState rs ) throws Exception { if ( Debug . isSet ( "showResponse" ) ) { log . debug ( "Sending Bad URL Page." ) ; } //log.info("DODSServlet.badURL " + rs.getRequest().getRequestURI()); rs . getResponse ( ) . setContentType ( "text/html" ) ; rs . getResponse ( ) . setHeader ( "XDODS-Server" , getServerVersion ( ) ) ; rs . getResponse ( ) . 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 ( rs . getResponse ( ) . getOutputStream ( ) , Util . UTF8 ) ) ; printBadURLPage ( pw ) ; printHelpPage ( pw ) ; pw . flush ( ) ; rs . getResponse ( ) . 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 rs The client's <code> ReqState </code>
************************************************************************ Sends an html document to the client explaining that they have used a poorly formed URL and then the help page ...