Adicionar Informação do Ambiente utilizado na Embarcada
bug#15195 dev:trevezani qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@96260 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
1f0cf8dbde
commit
7395539b51
|
@ -0,0 +1,24 @@
|
||||||
|
package com.rjconsultores.ventaboletos.rest;
|
||||||
|
|
||||||
|
import javax.ws.rs.GET;
|
||||||
|
import javax.ws.rs.Path;
|
||||||
|
import javax.ws.rs.Produces;
|
||||||
|
import javax.ws.rs.core.MediaType;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.dao.ConstanteDAO;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Constante;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||||
|
|
||||||
|
@Path("/ambiente")
|
||||||
|
public class AmbienteRS {
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public String getVersao() {
|
||||||
|
ConstanteDAO constanteDAO = (ConstanteDAO) AppContext.getApplicationContext().getBean("constanteDAO");
|
||||||
|
Constante constante = constanteDAO.buscarPorNomeConstante("NOMBRE_AMBIENTE");
|
||||||
|
|
||||||
|
return constante.getValorconstante();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue