mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
git-svn-id: https://zxing.googlecode.com/svn/trunk@404 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
3a5bed7681
commit
8319cf2097
|
@ -58,6 +58,7 @@ import java.io.OutputStreamWriter;
|
|||
import java.io.Writer;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.UnknownHostException;
|
||||
import java.util.Hashtable;
|
||||
import java.util.List;
|
||||
import java.util.Timer;
|
||||
|
@ -72,7 +73,7 @@ import java.util.logging.Logger;
|
|||
public final class DecodeServlet extends HttpServlet {
|
||||
|
||||
private static final long MAX_IMAGE_SIZE = 500000L;
|
||||
private static final long EMAIL_CHECK_INTERVAL = 60000L;
|
||||
private static final long EMAIL_CHECK_INTERVAL = 2L * 60 * 1000;
|
||||
|
||||
private static final Logger log = Logger.getLogger(DecodeServlet.class.getName());
|
||||
|
||||
|
@ -163,6 +164,9 @@ public final class DecodeServlet extends HttpServlet {
|
|||
} catch (HttpException he) {
|
||||
getRequest.abort();
|
||||
response.sendRedirect("badurl.jspx");
|
||||
} catch (UnknownHostException uhe) {
|
||||
getRequest.abort();
|
||||
response.sendRedirect("badurl.jspx");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue