Guest User

Untitled

a guest
Jan 20th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. @RequestMapping(value = "/methodA", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
  2. public ResponseEntity<String> methodA(@RequestBody String something) {
  3. // some process
  4. return null;
  5. }
  6.  
  7. @RequestMapping(value = "/methodB", consumes = org.springframework.http.MediaType.APPLICATION_JSON_VALUE)
  8. public ResponseEntity<String> methodA(@RequestBody String something) {
  9. // some process
  10. return null;
  11. }
  12.  
  13. public ResponseEntity<String> methodC(@RequestBody String someReq) {
  14. if (checkPam(someReq)) {
  15. **// I want to call the ControllerA in serverA.**
  16. }else {
  17. **// I want to call the ControllerB in serverB.**
  18. }
  19. return null;
  20. }
Add Comment
Please, Sign In to add comment