tds/src/main/java/thredds/server/reify/UploadController.java
@RequestMapping(value = "**", method = RequestMethod.GET)
    public void
    doGet(HttpServletRequest req, HttpServletResponse res)
            throws ServletException
    {

        try {
            setup(req, res);

            switch (this.params.command) {
            case NONE:
            case UPLOAD:
                // Send back the upload form
                sendForm("No files uploaded");
                break;
            case INQUIRE:
                String result = inquire();
                // Send back the inquiry answers
                sendOK(result);
                break;
            default:
                throw new SendError(res.SC_BAD_REQUEST, "Unknown command: " + this.params.command);
            }
        } catch (SendError se) {
            sendError(se);
        } catch (Exception e) {
            String msg = getStackTrace(e);
            sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, msg, e);
        }
    }
@RequestMapping(value = "**", method = RequestMethod.GET)
    public void
    doGet(HttpServletRequest req, HttpServletResponse res)
            throws ServletException
    {

        try {
            setup(req, res);

            switch (this.params.command) {
            case NONE:
            case UPLOAD:
                // Send back the upload form
                sendForm("No files uploaded");
                break;
            case INQUIRE:
                String result = inquire();
                // Send back the inquiry answers
                sendOK(result);
                break;
            default:
                throw new SendError(res.SC_BAD_REQUEST, "Unknown command: " + this.params.command);
            }
        } catch (SendError se) {
            sendError(se);
        } catch (Exception e) {
            String msg = getStackTrace(e);
            sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, msg, e);
        }
    }
@ RequestMapping ( value = "**" , method = RequestMethod . GET ) public void doGet ( HttpServletRequest req , HttpServletResponse res ) throws ServletException { try { setup ( req , res ) ; switch ( this . params . command ) { case NONE : case UPLOAD : // Send back the upload form sendForm ( "No files uploaded" ) ; break ; case INQUIRE : String result = inquire ( ) ; // Send back the inquiry answers sendOK ( result ) ; break ; default : throw new SendError ( res . SC_BAD_REQUEST , "Unknown command: " + this . params . command ) ; } } catch ( SendError se ) { sendError ( se ) ; } catch ( Exception e ) { String msg = getStackTrace ( e ) ; sendError ( HttpServletResponse . SC_INTERNAL_SERVER_ERROR , msg , e ) ; } }
Controller entry point(s)
Controller entry point ( s )