@Test public void testAddAndGetFormParams() throws Exception { assertTrue(builder.build().getFormParams().isEmpty()); builder.addFormParam("key1", "key1_value1"); Map<String, List<String>> formParams = builder.build().getFormParams(); assertTrue(formParams.containsKey("key1")); assertEquals(1, formParams.size()); assertEquals(1, formParams.get("key1").size()); assertEquals("[key1_value1]", formParams.get("key1").toString()); builder.addFormParam("key1", "key1_value2"); formParams = builder.build().getFormParams(); assertEquals(1, formParams.size()); assertEquals(2, formParams.get("key1").size()); assertEquals("[key1_value1, key1_value2]", formParams.get("key1").toString()); }
public Map<String, List<String>> getFormParams() { return Collections.unmodifiableMap(formParams); }
ParsecAsyncHttpRequest { public Map<String, List<String>> getFormParams() { return Collections.unmodifiableMap(formParams); } }
ParsecAsyncHttpRequest { public Map<String, List<String>> getFormParams() { return Collections.unmodifiableMap(formParams); } @SuppressWarnings("unused")  ParsecAsyncHttpRequest(); private  ParsecAsyncHttpRequest(final Builder builder); }
ParsecAsyncHttpRequest { public Map<String, List<String>> getFormParams() { return Collections.unmodifiableMap(formParams); } @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>> getFormParams() { return Collections.unmodifiableMap(formParams); } @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();  }