Back to project page muwifi-autologin.
The source code is released under:
Copyright 2011-2014 Pawit Pornkitprasan. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are...
If you think the Android project muwifi-autologin listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.dyndns.pawitp.muwifiautologin; /* ww w .j av a2s .c om*/ import org.apache.http.client.HttpRequestRetryHandler; import org.apache.http.protocol.HttpContext; import java.io.IOException; // Retry handler allowing the retry of POST requests public class PostRetryHandler implements HttpRequestRetryHandler { static final int RETRY_COUNT = 2; @Override public boolean retryRequest(IOException exception, int executionCount, HttpContext context) { if (executionCount >= RETRY_COUNT) { // Do not retry if over max retry count return false; } return true; } }