comparison gwt-client/src/main/java/org/dive4elements/river/client/server/DoCollectionAction.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
29 /** 29 /**
30 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 30 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
31 */ 31 */
32 public class DoCollectionAction extends RemoteServiceServlet { 32 public class DoCollectionAction extends RemoteServiceServlet {
33 33
34 private static final Logger logger = 34 private static final Logger log =
35 Logger.getLogger(DoCollectionAction.class); 35 Logger.getLogger(DoCollectionAction.class);
36 36
37 37
38 public static final String XPATH_RESULT = "/art:result/text()"; 38 public static final String XPATH_RESULT = "/art:result/text()";
39 public static final String OPERATION_FAILURE = "FAILED"; 39 public static final String OPERATION_FAILURE = "FAILED";
41 41
42 42
43 protected void doAction(Collection c, Document action, String url) 43 protected void doAction(Collection c, Document action, String url)
44 throws ServerException 44 throws ServerException
45 { 45 {
46 logger.info("DoCollectionAction.doAction"); 46 log.info("DoCollectionAction.doAction");
47 47
48 HttpClient client = new HttpClientImpl(url); 48 HttpClient client = new HttpClientImpl(url);
49 49
50 try { 50 try {
51 Document res = (Document) client.doCollectionAction( 51 Document res = (Document) client.doCollectionAction(
56 res, 56 res,
57 XPATH_RESULT, 57 XPATH_RESULT,
58 ArtifactNamespaceContext.INSTANCE); 58 ArtifactNamespaceContext.INSTANCE);
59 59
60 if (result == null || result.equals(OPERATION_FAILURE)) { 60 if (result == null || result.equals(OPERATION_FAILURE)) {
61 logger.error("Operation failed."); 61 log.error("Operation failed.");
62 throw new ServerException(FAILURE_EXCEPTION); 62 throw new ServerException(FAILURE_EXCEPTION);
63 } 63 }
64 } 64 }
65 catch (ConnectionException ce) { 65 catch (ConnectionException ce) {
66 logger.error(ce, ce); 66 log.error(ce, ce);
67 throw new ServerException(FAILURE_EXCEPTION); 67 throw new ServerException(FAILURE_EXCEPTION);
68 } 68 }
69 } 69 }
70 } 70 }

http://dive4elements.wald.intevation.org