@RequestMapping(method = RequestMethod.GET, value = "/columnasFuente/{tabla}/{id}/{tipo}") public ResponseEntity<EncapsuladorListSW<AtributoFuenteDatosDto>> listaColumnas( @PathVariable("tabla") String tabla, @PathVariable("id") Long id, @PathVariable("tipo") String tipo, HttpServletRequest request) { String path; if (tipo.equals(TiposFuente.CSV.getId())) path = getServicioConfiguracionGeneral().getPathCsv(); else if (tipo.equals(TiposFuente.GML.getId())) path = getServicioConfiguracionGeneral().getPathGml(); else if (tipo.equals(TiposFuente.SHAPEFILE.getId())) path = getServicioConfiguracionGeneral().getPathShapefile(); else path = null; String realPath = getPathRealAplicacion(request, path); String caracterSeparador = getServicioConfiguracionGeneral().getCaracterSeparadorCSV(); return new ResponseEntity<EncapsuladorListSW<AtributoFuenteDatosDto>>( gestorCUFuente.listarColumnasTablaFuenteExterna(id, tabla, realPath, caracterSeparador), responseHeaders, HttpStatus.OK); }