Class ProxyDetails

java.lang.Object
io.hawt.web.proxy.ProxyDetails
All Implemented Interfaces:
ProxyAddress

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

  • Constructor Details

    • ProxyDetails

      public ProxyDetails(jakarta.servlet.http.HttpServletRequest httpServletRequest)
    • ProxyDetails

      public ProxyDetails(String pathInfo)
  • Method Details

    • isAllowed

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

      public boolean isAllowed(List<Pattern> regexAllowlist)
    • getFullProxyUrl

      public String getFullProxyUrl()
      Specified by:
      getFullProxyUrl in interface ProxyAddress
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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()
    • getUserName

      public String getUserName()
      Specified by:
      getUserName in interface ProxyAddress
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface ProxyAddress
    • getHostAndPort

      public String getHostAndPort()
    • getPath

      public String getPath()
    • isValid

      public boolean isValid()