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 .