Class JLineupController

java.lang.Object
de.otto.jlineup.web.JLineupController

@RestController public class JLineupController extends Object
  • Constructor Details

  • Method Details

    • getHello

      @GetMapping("/") public String getHello(javax.servlet.http.HttpServletRequest request)
    • runBefore

      @PostMapping("/runs") public org.springframework.http.ResponseEntity<RunBeforeResponse> runBefore(@RequestBody de.otto.jlineup.config.JobConfig jobConfig, javax.servlet.http.HttpServletRequest request) throws Exception
      Throws:
      Exception
    • exampleRun

      @GetMapping("/exampleRun") public String exampleRun(@RequestParam(value="url",required=false) String url, @RequestParam(value="browser",required=false) String browser, javax.servlet.http.HttpServletRequest request) throws Exception
      Throws:
      Exception
    • runAfter

      @PostMapping("/runs/{runId}") public org.springframework.http.ResponseEntity<Void> runAfter(@PathVariable String runId, javax.servlet.http.HttpServletRequest request) throws Exception
      Throws:
      Exception
    • getRun

      @GetMapping("/runs/{runId}") public org.springframework.http.ResponseEntity<JLineupRunStatus> getRun(@PathVariable String runId)
    • exceptionHandler

      @ExceptionHandler(RunNotFoundException.class) public org.springframework.http.ResponseEntity<String> exceptionHandler(RunNotFoundException exception)
    • exceptionHandler

      @ExceptionHandler(InvalidRunStateException.class) public org.springframework.http.ResponseEntity<String> exceptionHandler(InvalidRunStateException exception)
    • exceptionHandler

      @ExceptionHandler(BrowserNotInstalledException.class) public org.springframework.http.ResponseEntity<String> exceptionHandler(BrowserNotInstalledException exception)
    • exceptionHandler

      @ExceptionHandler(com.fasterxml.jackson.databind.exc.InvalidDefinitionException.class) public org.springframework.http.ResponseEntity<String> exceptionHandler(com.fasterxml.jackson.databind.exc.InvalidDefinitionException exception)
    • exceptionHandler

      @ExceptionHandler(de.otto.jlineup.exceptions.ValidationError.class) public org.springframework.http.ResponseEntity<String> exceptionHandler(de.otto.jlineup.exceptions.ValidationError exception)