Code example for ModelAndView

Methods: addObject

0
            throw new NotFoundException(); 
        return process(info);
    } 
 
    protected ModelAndView process(MissionInfo info) {
        ModelAndView result = new ModelAndView("mission");
        result.addObject("info", info);
        result.addObject("isStopped", isStopped(info.getState()));
        result.addObject("isRunning", isRunning(info.getState()));
        result.addObject("toBeAuthed", allowAuth(info.getState()));
        result.addObject("toBeLaunched", allowLaunch(info.getState()));
        result.addObject("toBeClosed", allowClose(info.getState()));
        return result;
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java