ProxyDetails implements ProxyAddress { @Override public String getFullProxyUrl() { return stringProxyURL; } ProxyDetails(HttpServletRequest httpServletRequest);  ProxyDetails(String pathInfo); boolean isAllowed(Set<String> allowlist); boolean isAllowed(List<Pattern> regexAllowlist); @Override String getFullProxyUrl(); @Override String toString(); String getStringProxyURL(); String getProxyHostAndPort(); String getProxyPath(); String getScheme(); String getHost(); int getPort(); @Override String getUserName(); @Override String getPassword(); String getHostAndPort(); String getPath(); boolean isValid(); static final String USER_PARAM; static final String PWD_PARAM; }
@Test public void testPathInfoWithWhitespace() throws Exception { HttpServletRequest mockReq = mock(HttpServletRequest.class); when(mockReq.getPathInfo()).thenReturn("/http/localhost/10001/jolokia/read/java.lang:type=MemoryManager,name=Metaspace Manager/Name"); ProxyDetails details = new ProxyDetails(mockReq); assertEquals("getFullProxyUrl()", "http: }