Class Maestro1SimulationController


  • @RestController
    @RequestMapping("/api/maestro1/")
    public class Maestro1SimulationController
    extends java.lang.Object
    • Constructor Detail

      • Maestro1SimulationController

        public Maestro1SimulationController()
    • Method Detail

      • uploadFile

        @RequestMapping(value="/upload/{sessionId}",
                        method=POST)
        public void uploadFile​(@PathVariable
                               java.lang.String sessionId,
                               @RequestParam("fieldFile")
                               org.springframework.web.multipart.MultipartFile file)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • ping

        @RequestMapping(value="/ping",
                        method=GET)
        public java.lang.String ping()
      • stop

        @RequestMapping(value="/stopsimulation/{sessionId}",
                        method=POST)
        public void stop​(@PathVariable
                         java.lang.String sessionId)
      • getResultPlain

        @RequestMapping(value="/result/{sessionId}/plain",
                        method=GET)
        public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getResultPlain​(@PathVariable
                                                                                                            java.lang.String sessionId)
                                                                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getResultZip

        @RequestMapping(value="/result/{sessionId}/zip",
                        method=GET,
                        produces="application/zip")
        public void getResultZip​(@PathVariable
                                 java.lang.String sessionId,
                                 javax.servlet.http.HttpServletResponse response)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • destroy

        @RequestMapping(value="/destroy/{sessionId}",
                        method=GET)
        public void destroy​(@PathVariable
                            java.lang.String sessionId)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception