Class TestController
- java.lang.Object
-
- org.bremersee.security.authentication.resourceserver.servlet.components.TestController
-
@RestController public class TestController extends Object
The test controller.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description TestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<String>
protectedPostResource(String bode)
Protected post resource.org.springframework.http.ResponseEntity<String>
protectedResource()
Protected resource.org.springframework.http.ResponseEntity<String>
publicResource()
Public resource.
-
-
-
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
-
-