Package io.hawt.web.proxy
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 Summary
Fields Modifier and Type Field Description static StringPWD_PARAMstatic StringUSER_PARAM
-
Constructor Summary
Constructors Constructor Description ProxyDetails(String pathInfo)ProxyDetails(javax.servlet.http.HttpServletRequest httpServletRequest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFullProxyUrl()StringgetHost()StringgetHostAndPort()StringgetPassword()StringgetPath()intgetPort()StringgetProxyHostAndPort()StringgetProxyPath()StringgetScheme()StringgetStringProxyURL()StringgetUserName()protected intindexOf(String text, String... values)Returns the lowest index of the given list of valuesbooleanisAllowed(List<Pattern> regexAllowlist)booleanisAllowed(Set<String> allowlist)booleanisValid()StringtoString()
-
-
-
Field Detail
-
USER_PARAM
public static final String USER_PARAM
- See Also:
- Constant Field Values
-
PWD_PARAM
public static final String PWD_PARAM
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProxyDetails
public ProxyDetails(javax.servlet.http.HttpServletRequest httpServletRequest)
-
ProxyDetails
public ProxyDetails(String pathInfo)
-
-
Method Detail
-
getFullProxyUrl
public String getFullProxyUrl()
- Specified by:
getFullProxyUrlin interfaceProxyAddress
-
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:
getUserNamein interfaceProxyAddress
-
getPassword
public String getPassword()
- Specified by:
getPasswordin interfaceProxyAddress
-
getHostAndPort
public String getHostAndPort()
-
getPath
public String getPath()
-
isValid
public boolean isValid()
-
-