Commit 5efa2c52eda3b618aae2d81dc5f04490576cf75b
1 parent
b48459a6
Exists in
master
and in
1 other branch
Obter protocolo (https ou http)
Showing
2 changed files
with
14 additions
and
1 deletions
Show diff stats
dto/IndicadoresDTO.php
... | ... | @@ -16,5 +16,6 @@ class IndicadoresDTO extends InfraDTO { |
16 | 16 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'Plugins', 'plugins'); |
17 | 17 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'QuantidadeUnidades', 'quantidade_unidades'); |
18 | 18 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'TamanhoDocumentosExternos', 'tamanho_docs_externos'); |
19 | + $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'Protocolo', 'protocolo'); | |
19 | 20 | } |
20 | 21 | } | ... | ... |
rn/MdEstatisticasColetarRN.php
... | ... | @@ -32,6 +32,7 @@ class MdEstatisticasColetarRN extends InfraRN { |
32 | 32 | $objIndicadoresDTO->setStrPlugins($this->obterPlugins()); |
33 | 33 | $objIndicadoresDTO->setNumQuantidadeUnidades($this->obterQuantidadeUnidades()); |
34 | 34 | $objIndicadoresDTO->setNumTamanhoDocumentosExternos($this->obterTamanhoTotalDocumentosExternos()); |
35 | + $objIndicadoresDTO->setStrProtocolo($this->obterProtocolo()); | |
35 | 36 | |
36 | 37 | //... |
37 | 38 | |
... | ... | @@ -57,7 +58,6 @@ class MdEstatisticasColetarRN extends InfraRN { |
57 | 58 | return SEI_VERSAO; |
58 | 59 | } |
59 | 60 | |
60 | - | |
61 | 61 | private function obterVersaoPHP(){ |
62 | 62 | InfraDebug::getInstance()->gravar('SEI21 - Versão PHP: ' . phpversion(), InfraLog::$INFORMACAO); |
63 | 63 | return phpversion(); |
... | ... | @@ -120,6 +120,18 @@ class MdEstatisticasColetarRN extends InfraRN { |
120 | 120 | InfraDebug::getInstance()->gravar('SEI12 - Tamanho Documentos Externos: ' . $tamanho, InfraLog::$INFORMACAO); |
121 | 121 | return $tamanho; |
122 | 122 | } |
123 | + private function obterProtocolo(){ | |
124 | + $objConfiguracaoSEI = ConfiguracaoSEI::getInstance(); | |
125 | + if ($objConfiguracaoSEI->isSetValor('SessaoSEI', 'https')){ | |
126 | + $temHTTPS = $objConfiguracaoSEI->getValor('SessaoSEI', 'https'); | |
127 | + $protocolo = 'HTTP'; | |
128 | + if ($temHTTPS) { | |
129 | + $protocolo = 'HTTPS'; | |
130 | + } | |
131 | + InfraDebug::getInstance()->gravar('SEI12 - Protocolo: ' . $protocolo, InfraLog::$INFORMACAO); | |
132 | + return $protocolo; | |
133 | + } | |
134 | + } | |
123 | 135 | |
124 | 136 | } |
125 | 137 | ?> | ... | ... |