public class ProxyDetails extends Object implements ProxyAddress
Modifier and Type | Field and Description |
---|---|
static String |
PWD_PARAM |
static String |
USER_PARAM |
Constructor and Description |
---|
ProxyDetails(javax.servlet.http.HttpServletRequest httpServletRequest) |
ProxyDetails(String pathInfo) |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.httpclient.HttpClient |
createHttpClient(org.apache.commons.httpclient.HttpMethod httpMethodProxyRequest) |
String |
getFullProxyUrl() |
String |
getHost() |
String |
getHostAndPort() |
String |
getPassword() |
String |
getPath() |
int |
getPort() |
String |
getProxyHostAndPort() |
String |
getProxyPath() |
String |
getScheme() |
String |
getStringProxyURL() |
String |
getUserName() |
protected int |
indexOf(String text,
String... values)
Returns the lowest index of the given list of values
|
boolean |
isAllowed(List<Pattern> regexWhitelist) |
boolean |
isAllowed(Set<String> whitelist) |
boolean |
isValid() |
String |
toString() |
public static final String USER_PARAM
public static final String PWD_PARAM
public ProxyDetails(javax.servlet.http.HttpServletRequest httpServletRequest)
public ProxyDetails(String pathInfo)
public String getFullProxyUrl()
getFullProxyUrl
in interface ProxyAddress
protected int indexOf(String text, String... values)
public org.apache.commons.httpclient.HttpClient createHttpClient(org.apache.commons.httpclient.HttpMethod httpMethodProxyRequest)
public String getStringProxyURL()
public String getProxyHostAndPort()
public String getProxyPath()
public String getScheme()
public String getHost()
public int getPort()
public String getUserName()
getUserName
in interface ProxyAddress
public String getPassword()
getPassword
in interface ProxyAddress
public String getHostAndPort()
public String getPath()
public boolean isValid()
Copyright © 2020 JBoss by Red Hat. All rights reserved.