Class InjectController


  • @RestController
    @RequestMapping("/complex")
    public class InjectController
    extends java.lang.Object
    Inject RestController.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String header​(java.lang.String header)  
      java.lang.String inject()  
      java.lang.String pathParam​(java.lang.String parameter)  
      java.lang.String post​(java.lang.String requestBody)  
      java.lang.String requestParam​(java.lang.String parameter)  
      java.lang.String status()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InjectController

        public InjectController()
    • Method Detail

      • inject

        @GetMapping("/inject")
        public java.lang.String inject()
      • status

        @GetMapping("/status")
        @ResponseStatus(CREATED)
        public java.lang.String status()
      • pathParam

        @GetMapping("/path/{param}")
        public java.lang.String pathParam​(@PathVariable("param")
                                          java.lang.String parameter)
      • requestParam

        @GetMapping(path="/query",
                    params="param")
        public java.lang.String requestParam​(@RequestParam("param")
                                             java.lang.String parameter)
      • header

        @GetMapping(path="/header",
                    headers="header")
        public java.lang.String header​(@RequestHeader("header")
                                       java.lang.String header)
      • post

        @PostMapping
        public java.lang.String post​(@RequestBody
                                     java.lang.String requestBody)