/[projects]/dao/DaoAdresseService/src/main/java/dk/daoas/daoadresseservice/SearchServlet.java
ViewVC logotype

Diff of /dao/DaoAdresseService/src/main/java/dk/daoas/daoadresseservice/SearchServlet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2299 by torben, Sun Feb 15 11:55:20 2015 UTC revision 2306 by torben, Sun Feb 15 17:10:34 2015 UTC
# Line 38  public class SearchServlet extends HttpS Line 38  public class SearchServlet extends HttpS
38                  AdressSearch search = (AdressSearch) this.getServletContext().getAttribute("search");                  AdressSearch search = (AdressSearch) this.getServletContext().getAttribute("search");
39                  if (search == null) {                  if (search == null) {
40                          response.setContentType("text/xml; charset=UTF-8");                          response.setContentType("text/xml; charset=UTF-8");
41                          response.getWriter().print(                          response.getWriter().print(
42                                            "<result>" +
43                                          "<status>error</status>" +                                          "<status>error</status>" +
44                                          "<error>Service not ready</error>"                                          "<error>Service not ready</error>" +
45                                            "</result>"
46                                          );                                          );
47                          return;                          return;
48                                                    
# Line 76  public class SearchServlet extends HttpS Line 78  public class SearchServlet extends HttpS
78                                  Address t = result.address.extTarget;                                  Address t = result.address.extTarget;
79                                  sb.append("<extaddr>").append(t.vejnavn + " " + t.husnr + t.husnrbogstav + ", " + t.postnr).append("</extaddr>");                                  sb.append("<extaddr>").append(t.vejnavn + " " + t.husnr + t.husnrbogstav + ", " + t.postnr).append("</extaddr>");
80                          }                          }
81                            sb.append("<osm>").append(result.osm).append("</osm>");
82                          sb.append("<google>").append(result.google).append("</google>");                          sb.append("<google>").append(result.google).append("</google>");
83                                                    
84                                                    

Legend:
Removed from v.2299  
changed lines
  Added in v.2306

  ViewVC Help
Powered by ViewVC 1.1.20