Class ProxyDetails

  • All Implemented Interfaces:
    ProxyAddress

    public class ProxyDetails
    extends Object
    implements ProxyAddress
    A helper object to store the proxy location details
    • Constructor Detail

      • ProxyDetails

        public ProxyDetails​(javax.servlet.http.HttpServletRequest httpServletRequest)
      • ProxyDetails

        public ProxyDetails​(String pathInfo)
    • Method Detail

      • isAllowed

        public boolean isAllowed​(Set<String> allowlist)
      • isAllowed

        public boolean isAllowed​(List<Pattern> regexAllowlist)
      • indexOf

        protected int indexOf​(String text,
                              String... values)
        Returns the lowest index of the given list of values
      • getStringProxyURL

        public String getStringProxyURL()
      • getProxyHostAndPort

        public String getProxyHostAndPort()
      • getProxyPath

        public String getProxyPath()
      • getScheme

        public String getScheme()
      • getHost

        public String getHost()
      • getPort

        public int getPort()
      • getHostAndPort

        public String getHostAndPort()
      • getPath

        public String getPath()
      • isValid

        public boolean isValid()