@Test public void testAddRemoveAndGetRetryStatusCodes() throws Exception { assertTrue(builder.build().getRetryStatusCodes().isEmpty()); List<Integer> retryStatusCodes = builder .addRetryStatusCode(502).addRetryStatusCode(503).build().getRetryStatusCodes(); assertEquals(2, retryStatusCodes.size()); assertTrue(retryStatusCodes.contains(502)); assertTrue(retryStatusCodes.contains(503)); retryStatusCodes = builder.addRetryStatusCode(200).build().getRetryStatusCodes(); assertEquals(2, retryStatusCodes.size()); assertFalse(retryStatusCodes.contains(200)); retryStatusCodes = builder.removeRetryStatusCode(503).build().getRetryStatusCodes(); assertEquals(1, retryStatusCodes.size()); assertTrue(retryStatusCodes.contains(502)); assertFalse(retryStatusCodes.contains(503)); }
public List<Integer> getRetryStatusCodes() { return Collections.unmodifiableList(retryStatusCodes); }
ParsecAsyncHttpRequest { public List<Integer> getRetryStatusCodes() { return Collections.unmodifiableList(retryStatusCodes); } }
ParsecAsyncHttpRequest { public List<Integer> getRetryStatusCodes() { return Collections.unmodifiableList(retryStatusCodes); } @SuppressWarnings("unused")  ParsecAsyncHttpRequest(); private  ParsecAsyncHttpRequest(final Builder builder); }
ParsecAsyncHttpRequest { public List<Integer> getRetryStatusCodes() { return Collections.unmodifiableList(retryStatusCodes); } @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 List<Integer> getRetryStatusCodes() { return Collections.unmodifiableList(retryStatusCodes); } @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();  }