SpringToHttp4kFallbackController

@Controller
@RequestMapping(value = ["/"])
abstract class SpringToHttp4kFallbackController(http4k: HttpHandler)

Constructors

Link copied to clipboard
constructor(http4k: HttpHandler)

Functions

Link copied to clipboard
@RequestMapping(value = ["**"], method = [RequestMethod.GET, RequestMethod.HEAD, RequestMethod.POST, RequestMethod.PUT, RequestMethod.PATCH, RequestMethod.DELETE, RequestMethod.OPTIONS, RequestMethod.TRACE])
fun fallback(request: HttpServletRequest, response: HttpServletResponse)
Link copied to clipboard
@ExceptionHandler(exception = [LensFailure::class], produces = ["application/problem+json", "application/json", "*/*"])
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
fun handleLensFailure(e: LensFailure): ProblemDetail