Commit d637c7bbacf3b74761870bdbe16f090c18092285
1 parent
312f32bd
Exists in
master
and in
1 other branch
Correções
git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%20Web/Fontes/avaliador-web@10532 c2178572-b5ca-4887-91d2-9e3a90c7d55b
Showing
3 changed files
with
5 additions
and
4 deletions
Show diff stats
src/main/java/br/com/ases/business/impl/AvaliacaoBusinessImpl.java
... | ... | @@ -35,7 +35,8 @@ public class AvaliacaoBusinessImpl implements AvaliacaoBusiness{ |
35 | 35 | EseloProperties eseloProperties = null; |
36 | 36 | |
37 | 37 | |
38 | - private static String CSS_VALIDATOR_URL = "http://www.css-validator.org/validator?uri=#{url}&warning=0&output=soap12"; | |
38 | + //private static String CSS_VALIDATOR_URL = "http://www.css-validator.org/validator?uri=#{url}&warning=0&output=soap12"; | |
39 | + private static String CSS_VALIDATOR_URL = "http://jigsaw.w3.org/css-validator/validator?uri=#{url}&warning=0&output=soap12"; | |
39 | 40 | private static String HTML_VALIDATOR_URL = "https://validator.w3.org/nu/?doc=#{url}&out=json"; |
40 | 41 | |
41 | 42 | public Nota obterNota(List<SummarizedOccurrence> occurrences,String url) { |
... | ... | @@ -60,7 +61,7 @@ public class AvaliacaoBusinessImpl implements AvaliacaoBusiness{ |
60 | 61 | int qtdLinhas = 0; |
61 | 62 | |
62 | 63 | for(Integer rn : rns){ |
63 | - //Recomendação Avaliada | |
64 | + //Recomenda��o Avaliada | |
64 | 65 | postParams.addParam("relatorioAvaliacao.recomendacoes["+countReq+"].idRecomendacao", Integer.toString(rn)); |
65 | 66 | int qtdErros = 0; |
66 | 67 | ... | ... |
src/main/java/br/com/ases/controller/AvaliacaoController.java
... | ... | @@ -226,7 +226,7 @@ public class AvaliacaoController { |
226 | 226 | Nota nota = (Nota) VRaptorRequestHolder.currentRequest().getServletContext().getAttribute("notaAvaliacao"); |
227 | 227 | |
228 | 228 | map.put("pPercentualAses", nota.getValor()); |
229 | - map.put("pPagina", urlAvaliada != "" ? urlAvaliada : "Código Fonte ou Arquivo"); | |
229 | + map.put("pPagina", urlAvaliada != "" ? urlAvaliada : "C�digo Fonte ou Arquivo"); | |
230 | 230 | |
231 | 231 | if(urlAvaliada != ""){ |
232 | 232 | Pattern pp = Pattern.compile("(http://www.)?([a-z]*)(.)?"); | ... | ... |
src/main/java/br/com/ases/infra/WebChecker.java
... | ... | @@ -21,7 +21,7 @@ import br.com.checker.emag.core.Checker; |
21 | 21 | |
22 | 22 | public class WebChecker { |
23 | 23 | private static final String CONTENT_LENGHT = "Content-Length" ; |
24 | - private static final String HTTP_PROTOCOL_ALLOW_CIRCULAR_REDIRECTS = "http.protocol.allow-circular-redirects"; | |
24 | + private static final String HTTP_PROTOCOL_ALLOW_CIRCULAR_REDIRECTS = "https.protocol.allow-circular-redirects"; | |
25 | 25 | private HttpClient client; |
26 | 26 | private HttpMethod method; |
27 | 27 | private String url; | ... | ... |