Package de.otto.jlineup.web
Class JLineupController
java.lang.Object
de.otto.jlineup.web.JLineupController
-
Constructor Summary
ConstructorsConstructorDescriptionJLineupController(JLineupService jLineupService, JLineupWebProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionexampleRun(String url, String browser, jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<String>exceptionHandler(com.fasterxml.jackson.databind.exc.InvalidDefinitionException exception) org.springframework.http.ResponseEntity<String>exceptionHandler(de.otto.jlineup.exceptions.ValidationError exception) org.springframework.http.ResponseEntity<String>exceptionHandler(BrowserNotInstalledException exception) org.springframework.http.ResponseEntity<String>exceptionHandler(InvalidRunStateException exception) org.springframework.http.ResponseEntity<String>exceptionHandler(RunNotFoundException exception) org.springframework.http.ResponseEntity<String>exceptionHandler(IllegalArgumentException exception) getHello(jakarta.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<JLineupRunStatus>org.springframework.http.ResponseEntity<Void>org.springframework.http.ResponseEntity<RunBeforeResponse>runBefore(de.otto.jlineup.config.JobConfig jobConfig, jakarta.servlet.http.HttpServletRequest request)
-
Constructor Details
-
JLineupController
-
-
Method Details
-
getHello
-
runBefore
@PostMapping("/runs") public org.springframework.http.ResponseEntity<RunBeforeResponse> runBefore(@RequestBody de.otto.jlineup.config.JobConfig jobConfig, jakarta.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, jakarta.servlet.http.HttpServletRequest request) throws Exception - Throws:
Exception
-
runAfter
@PostMapping("/runs/{runId}") public org.springframework.http.ResponseEntity<Void> runAfter(@PathVariable String runId, jakarta.servlet.http.HttpServletRequest request) throws Exception - Throws:
Exception
-
getRun
@GetMapping("/runs/{runId}") public org.springframework.http.ResponseEntity<JLineupRunStatus> getRun(@PathVariable String runId) throws RunNotFoundException - Throws:
RunNotFoundException
-
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) -
exceptionHandler
@ExceptionHandler(java.lang.IllegalArgumentException.class) public org.springframework.http.ResponseEntity<String> exceptionHandler(IllegalArgumentException exception)
-