Commit b36ea6a112c4b0f9e04794cc01979021f0369c2e

Authored by mp-96409975520
1 parent 64530d25
Exists in master

Ignorar verificação de certificados.

src/main/java/br/com/ases/model/utilities/Validate.java
1 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 3 import java.io.IOException;
7 4 import java.net.MalformedURLException;
8 5 import java.net.URL;
9   -import java.net.URLConnection;
10 6 import java.util.regex.Matcher;
11 7 import java.util.regex.Pattern;
12 8  
... ... @@ -16,12 +12,10 @@ import org.apache.commons.httpclient.HttpMethod;
16 12 import org.apache.commons.httpclient.methods.GetMethod;
17 13 import org.apache.commons.httpclient.params.HttpMethodParams;
18 14  
19   -import br.com.ases.infra.WebChecker;
20 15 import br.com.ases.model.entity.Contato;
21 16 import br.com.caelum.vraptor.Validator;
22 17 import br.com.caelum.vraptor.interceptor.multipart.UploadedFile;
23 18 import br.com.caelum.vraptor.validator.ValidationMessage;
24   -import br.com.checker.emag.core.Checker;
25 19  
26 20 public class Validate {
27 21  
... ... @@ -113,7 +107,7 @@ public class Validate {
113 107  
114 108 private Integer verificarConexao(String campo, String usuario, String agente)
115 109 {
116   -
  110 + System.setProperty("jsse.enableSNIExtension", "false");
117 111 int codResponse = -1;
118 112 HttpMethod metodoRequisicaoGET = null;
119 113 HttpClient clienteHTTPJakartaCommons;
... ...