Class HttpProxyService


  • @Service("httpProxyService")
    public class HttpProxyService
    extends Object
    Simple HTTP Proxy service (forward proxy)
    Author:
    Andre Henn, terrestris GmbH & co. KG
    • Constructor Detail

      • HttpProxyService

        public HttpProxyService()
    • Method Detail

      • doProxy

        public org.springframework.http.ResponseEntity<?> doProxy​(javax.servlet.http.HttpServletRequest request,
                                                                  String baseUrl,
                                                                  Map<String,​String> params)
        Parameters:
        request -
        baseUrl -
        params -
        Returns:
      • doProxy

        public org.springframework.http.ResponseEntity<?> doProxy​(javax.servlet.http.HttpServletRequest request,
                                                                  String baseUrl,
                                                                  Map<String,​String> params,
                                                                  boolean useWhitelist)
        Parameters:
        request -
        baseUrl -
        params -
        useWhitelist -
        Returns:
      • setProxyWhiteList

        public void setProxyWhiteList​(List<String> proxyWhiteList)
        The setter for proxy whitelist
        Parameters:
        proxyWhiteList - The List containing Strings of whitelisted hosts