@Test public void testQueryParamFromUri() throws Exception { UriBuilder uriBuilder = UriBuilder.fromUri("http: uriBuilder.queryParam("encodeParam", "+param"); uriBuilder.queryParam("normalParam", "param"); URI uri = uriBuilder.build(); builder.setUri(uri); ParsecAsyncHttpRequest request = builder.build(); Map<String, List<String>> queryParams = request.getQueryParams(); assertTrue(queryParams.containsKey("encodeParam")); assertTrue(queryParams.containsKey("normalParam")); assertEquals(2, queryParams.size()); assertEquals("[%2Bparam]", queryParams.get("encodeParam").toString()); assertEquals("[param]", queryParams.get("normalParam").toString()); }
public Map<String, List<String>> getQueryParams() { return Collections.unmodifiableMap(queryParams); }
ParsecAsyncHttpRequest { public Map<String, List<String>> getQueryParams() { return Collections.unmodifiableMap(queryParams); } }
ParsecAsyncHttpRequest { public Map<String, List<String>> getQueryParams() { return Collections.unmodifiableMap(queryParams); } @SuppressWarnings("unused")  ParsecAsyncHttpRequest(); private  ParsecAsyncHttpRequest(final Builder builder); }
ParsecAsyncHttpRequest { public Map<String, List<String>> getQueryParams() { return Collections.unmodifiableMap(queryParams); } @SuppressWarnings("unused")  ParsecAsyncHttpRequest(); private  ParsecAsyncHttpRequest(final Builder builder); @Override boolean equals(Object object); @Override int hashCode(); String getBody(); byte[] getBodyByte(); String getBodyEncoding(); long getContentLength(); Collection<NewCookie> getCookies(); Map<String, List<String>> getFormParams(); String getHeaderString(String headerKey); Map<String, List<String>> getHeaders(); int getMaxRetries(); String getMethod(); String getProxyServer(); Map<String, List<String>> getQueryParams(); long getRangeOffset(); int getRequestTimeout(); List<Integer> getRetryStatusCodes(); List<Class<? extends Throwable>> getRetryExceptions(); URI getUri(); String getUrl(); String getVirtualHost(); boolean isCriticalGet(); boolean isFollowRedirect(); boolean isAcceptCompression(); ParsecNameResolver getNameResolver(); }
ParsecAsyncHttpRequest { public Map<String, List<String>> getQueryParams() { return Collections.unmodifiableMap(queryParams); } @SuppressWarnings("unused")  ParsecAsyncHttpRequest(); private  ParsecAsyncHttpRequest(final Builder builder); @Override boolean equals(Object object); @Override int hashCode(); String getBody(); byte[] getBodyByte(); String getBodyEncoding(); long getContentLength(); Collection<NewCookie> getCookies(); Map<String, List<String>> getFormParams(); String getHeaderString(String headerKey); Map<String, List<String>> getHeaders(); int getMaxRetries(); String getMethod(); String getProxyServer(); Map<String, List<String>> getQueryParams(); long getRangeOffset(); int getRequestTimeout(); List<Integer> getRetryStatusCodes(); List<Class<? extends Throwable>> getRetryExceptions(); URI getUri(); String getUrl(); String getVirtualHost(); boolean isCriticalGet(); boolean isFollowRedirect(); boolean isAcceptCompression(); ParsecNameResolver getNameResolver();  }