comparison gwt-client/src/main/java/org/dive4elements/river/client/server/ReportServiceImpl.java @ 8203:238fc722f87a

sed 's/logger/log/g' src/**/*.java
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 13:19:22 +0200
parents ea9eef426962
children 0a5239a1e46e
comparison
equal deleted inserted replaced
8202:e4606eae8ea5 8203:238fc722f87a
31 31
32 public class ReportServiceImpl 32 public class ReportServiceImpl
33 extends RemoteServiceServlet 33 extends RemoteServiceServlet
34 implements ReportService 34 implements ReportService
35 { 35 {
36 private static final Logger logger = 36 private static final Logger log =
37 Logger.getLogger(ReportServiceImpl.class); 37 Logger.getLogger(ReportServiceImpl.class);
38 38
39 39
40 @Override 40 @Override
41 public String report( 41 public String report(
42 String collectionId, 42 String collectionId,
43 String locale, 43 String locale,
44 String out 44 String out
45 ) { 45 ) {
46 logger.info("report: " + collectionId + " " + out); 46 log.info("report: " + collectionId + " " + out);
47 47
48 String url = getServletContext().getInitParameter("server-url"); 48 String url = getServletContext().getInitParameter("server-url");
49 49
50 Document request = ClientProtocolUtils.newOutCollectionDocument( 50 Document request = ClientProtocolUtils.newOutCollectionDocument(
51 collectionId, 51 collectionId,
56 try { 56 try {
57 HttpClient client = new HttpClientImpl(url, locale); 57 HttpClient client = new HttpClientImpl(url, locale);
58 in = client.collectionOut(request, collectionId, out); 58 in = client.collectionOut(request, collectionId, out);
59 59
60 if (in == null) { 60 if (in == null) {
61 logger.debug("report: no report"); 61 log.debug("report: no report");
62 return null; 62 return null;
63 } 63 }
64 64
65 Document report = XMLUtils.parseDocument(in); 65 Document report = XMLUtils.parseDocument(in);
66 66

http://dive4elements.wald.intevation.org