Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/SetCollectionNameServiceImpl.java @ 1367:ab8eb2f544f2
Replaced stdout and stderr logging with log4j loggers in server classes.
flys-client/trunk@3069 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 25 Oct 2011 12:31:15 +0000 |
parents | 1dbffe4c6d12 |
children | bc06a671ef60 |
comparison
equal
deleted
inserted
replaced
1366:d0eb2202ffbe | 1367:ab8eb2f544f2 |
---|---|
1 package de.intevation.flys.client.server; | 1 package de.intevation.flys.client.server; |
2 | 2 |
3 import org.w3c.dom.Document; | 3 import org.w3c.dom.Document; |
4 | |
5 import org.apache.log4j.Logger; | |
4 | 6 |
5 import de.intevation.artifacts.common.utils.ClientProtocolUtils; | 7 import de.intevation.artifacts.common.utils.ClientProtocolUtils; |
6 | 8 |
7 import de.intevation.flys.client.shared.exceptions.ServerException; | 9 import de.intevation.flys.client.shared.exceptions.ServerException; |
8 import de.intevation.flys.client.shared.model.Collection; | 10 import de.intevation.flys.client.shared.model.Collection; |
14 */ | 16 */ |
15 public class SetCollectionNameServiceImpl | 17 public class SetCollectionNameServiceImpl |
16 extends DoCollectionAction | 18 extends DoCollectionAction |
17 implements SetCollectionNameService | 19 implements SetCollectionNameService |
18 { | 20 { |
21 private static final Logger logger = | |
22 Logger.getLogger(SetCollectionNameServiceImpl.class); | |
23 | |
24 | |
19 public void setName(Collection c, String url) | 25 public void setName(Collection c, String url) |
20 throws ServerException | 26 throws ServerException |
21 { | 27 { |
22 System.out.println("Set name of collection: " + c.identifier()); | 28 logger.info("Set name of collection: " + c.identifier()); |
23 | 29 |
24 String name = c.getName(); | 30 String name = c.getName(); |
25 Document set = ClientProtocolUtils.newSetCollectionNameDocument(name); | 31 Document set = ClientProtocolUtils.newSetCollectionNameDocument(name); |
26 | 32 |
27 doAction(c, set, url); | 33 doAction(c, set, url); |