Class HttpProxyController


  • @Controller
    public class HttpProxyController
    extends Object
    Controller for simple HTTP Proxy service (forward proxy)
    Author:
    Andre Henn, terrestris GmbH & co. KG
    • Constructor Detail

      • HttpProxyController

        public HttpProxyController()
    • Method Detail

      • doProxy

        @RequestMapping("/proxy.action")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> doProxy​(javax.servlet.http.HttpServletRequest request,
                                                                  @RequestParam
                                                                  String baseUrl,
                                                                  @RequestParam(required=false)
                                                                  Map<String,​String> params)
        Web controller mapping proxy.action to doProxy method. Provided parameters are passed to HttpProxyService
        Parameters:
        request - HttpServletRequest to use in proxy (e.g. to obtain headers from)
        baseUrl - The base url of request
        params - Request params
        Returns:
        ResponseEntity