Class TestController


  • @RestController
    public class TestController
    extends Object
    The test controller.
    Author:
    Christian Bremer
    • Constructor Detail

      • TestController

        public TestController()
    • Method Detail

      • publicResource

        @GetMapping(path="/public")
        public org.springframework.http.ResponseEntity<String> publicResource()
        Public resource.
        Returns:
        the response entity
      • protectedResource

        @GetMapping(path="/protected")
        public org.springframework.http.ResponseEntity<String> protectedResource()
        Protected resource.
        Returns:
        the response entity
      • protectedPostResource

        @PostMapping(path="/protected",
                     consumes="text/plain",
                     produces="text/plain")
        public org.springframework.http.ResponseEntity<String> protectedPostResource​(@RequestBody
                                                                                     String bode)
        Protected post resource.
        Parameters:
        bode - the bode
        Returns:
        the response entity