opendap/dtswar/src/main/java/opendap/dts/DTSServlet.java
public void doGetHTML(ReqState rs)
            throws Exception
    {
        GuardedDataset ds = null;
        try {
            ds = getDataset(rs);
            if(ds == null) return;

            rs.getResponse().setHeader("XDODS-Server", getServerVersion());
            rs.getResponse().setContentType("text/html");
            rs.getResponse().setHeader("Content-Description", "dods-form");

            // Utilize the getDDS() method to get	a parsed and populated DDS
            // for this server.
            ServerDDS myDDS = ds.getDDS();
            DAS das = ds.getDAS();
            GetHTMLInterfaceHandler di = new GetHTMLInterfaceHandler();
            di.sendDataRequestForm(rs, rs.getDataSet(), myDDS, das);
            rs.getResponse().setStatus(HttpServletResponse.SC_OK);

        } catch (ParseException pe) {
            parseExceptionHandler(pe, rs.getResponse());
        } catch (DAP2Exception de) {
            dap2ExceptionHandler(de, rs.getResponse());
        } catch (IOException pe) {
            IOExceptionHandler(pe, rs);
        } catch (Throwable t) {
            anyExceptionHandler(t, rs);
        } finally {  // release lock if needed
            if(ds != null) ds.release();
        }

    }
public void doGetHTML(ReqState rs)
            throws Exception
    {
        GuardedDataset ds = null;
        try {
            ds = getDataset(rs);
            if(ds == null) return;

            rs.getResponse().setHeader("XDODS-Server", getServerVersion());
            rs.getResponse().setContentType("text/html");
            rs.getResponse().setHeader("Content-Description", "dods-form");

            // Utilize the getDDS() method to get	a parsed and populated DDS
            // for this server.
            ServerDDS myDDS = ds.getDDS();
            DAS das = ds.getDAS();
            GetHTMLInterfaceHandler di = new GetHTMLInterfaceHandler();
            di.sendDataRequestForm(rs, rs.getDataSet(), myDDS, das);
            rs.getResponse().setStatus(HttpServletResponse.SC_OK);

        } catch (ParseException pe) {
            parseExceptionHandler(pe, rs.getResponse());
        } catch (DAP2Exception de) {
            dap2ExceptionHandler(de, rs.getResponse());
        } catch (IOException pe) {
            IOExceptionHandler(pe, rs);
        } catch (Throwable t) {
            anyExceptionHandler(t, rs);
        } finally {  // release lock if needed
            if(ds != null) ds.release();
        }

    }
public void doGetHTML ( ReqState rs ) throws Exception { GuardedDataset ds = null ; try { ds = getDataset ( rs ) ; if ( ds == null ) return ; rs . getResponse ( ) . setHeader ( "XDODS-Server" , getServerVersion ( ) ) ; rs . getResponse ( ) . setContentType ( "text/html" ) ; rs . getResponse ( ) . setHeader ( "Content-Description" , "dods-form" ) ; // Utilize the getDDS() method to get	a parsed and populated DDS // for this server. ServerDDS myDDS = ds . getDDS ( ) ; DAS das = ds . getDAS ( ) ; GetHTMLInterfaceHandler di = new GetHTMLInterfaceHandler ( ) ; di . sendDataRequestForm ( rs , rs . getDataSet ( ) , myDDS , das ) ; rs . getResponse ( ) . setStatus ( HttpServletResponse . SC_OK ) ; } catch ( ParseException pe ) { parseExceptionHandler ( pe , rs . getResponse ( ) ) ; } catch ( DAP2Exception de ) { dap2ExceptionHandler ( de , rs . getResponse ( ) ) ; } catch ( IOException pe ) { IOExceptionHandler ( pe , rs ) ; } catch ( Throwable t ) { anyExceptionHandler ( t , rs ) ; } finally { // release lock if needed if ( ds != null ) ds . release ( ) ; } }
Handler for OPeNDAP .html requests. Returns the OPeNDAP Web
Interface (aka The Interface From Hell) to the client.
<p>
The bulk of this code resides in the class
opendap.servlet.GetHTMLInterfaceHandler and
documentation may be found there.

@param rs The client's <code> ReqState</code>
@see GetHTMLInterfaceHandler
Handler for OPeNDAP . html requests . Returns the OPeNDAP Web Interface ( aka The Interface From Hell ) to the client . <p > The bulk of this code resides in the class opendap . servlet . GetHTMLInterfaceHandler and documentation may be found there .