Commit b36ea6a112c4b0f9e04794cc01979021f0369c2e
1 parent
64530d25
Exists in
master
Ignorar verificação de certificados.
Showing
1 changed file
with
1 additions
and
7 deletions
Show diff stats
src/main/java/br/com/ases/model/utilities/Validate.java
1 | package br.com.ases.model.utilities; | 1 | package br.com.ases.model.utilities; |
2 | 2 | ||
3 | -import static br.com.checker.emag.core.Checker.from; | ||
4 | -import groovy.time.BaseDuration.From; | ||
5 | - | ||
6 | import java.io.IOException; | 3 | import java.io.IOException; |
7 | import java.net.MalformedURLException; | 4 | import java.net.MalformedURLException; |
8 | import java.net.URL; | 5 | import java.net.URL; |
9 | -import java.net.URLConnection; | ||
10 | import java.util.regex.Matcher; | 6 | import java.util.regex.Matcher; |
11 | import java.util.regex.Pattern; | 7 | import java.util.regex.Pattern; |
12 | 8 | ||
@@ -16,12 +12,10 @@ import org.apache.commons.httpclient.HttpMethod; | @@ -16,12 +12,10 @@ import org.apache.commons.httpclient.HttpMethod; | ||
16 | import org.apache.commons.httpclient.methods.GetMethod; | 12 | import org.apache.commons.httpclient.methods.GetMethod; |
17 | import org.apache.commons.httpclient.params.HttpMethodParams; | 13 | import org.apache.commons.httpclient.params.HttpMethodParams; |
18 | 14 | ||
19 | -import br.com.ases.infra.WebChecker; | ||
20 | import br.com.ases.model.entity.Contato; | 15 | import br.com.ases.model.entity.Contato; |
21 | import br.com.caelum.vraptor.Validator; | 16 | import br.com.caelum.vraptor.Validator; |
22 | import br.com.caelum.vraptor.interceptor.multipart.UploadedFile; | 17 | import br.com.caelum.vraptor.interceptor.multipart.UploadedFile; |
23 | import br.com.caelum.vraptor.validator.ValidationMessage; | 18 | import br.com.caelum.vraptor.validator.ValidationMessage; |
24 | -import br.com.checker.emag.core.Checker; | ||
25 | 19 | ||
26 | public class Validate { | 20 | public class Validate { |
27 | 21 | ||
@@ -113,7 +107,7 @@ public class Validate { | @@ -113,7 +107,7 @@ public class Validate { | ||
113 | 107 | ||
114 | private Integer verificarConexao(String campo, String usuario, String agente) | 108 | private Integer verificarConexao(String campo, String usuario, String agente) |
115 | { | 109 | { |
116 | - | 110 | + System.setProperty("jsse.enableSNIExtension", "false"); |
117 | int codResponse = -1; | 111 | int codResponse = -1; |
118 | HttpMethod metodoRequisicaoGET = null; | 112 | HttpMethod metodoRequisicaoGET = null; |
119 | HttpClient clienteHTTPJakartaCommons; | 113 | HttpClient clienteHTTPJakartaCommons; |