Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/GetArtifactServiceImpl.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 |
---|---|
36 */ | 36 */ |
37 public class GetArtifactServiceImpl | 37 public class GetArtifactServiceImpl |
38 extends RemoteServiceServlet | 38 extends RemoteServiceServlet |
39 implements GetArtifactService | 39 implements GetArtifactService |
40 { | 40 { |
41 private static final Logger logger = | 41 private static final Logger log = |
42 Logger.getLogger(GetArtifactServiceImpl.class); | 42 Logger.getLogger(GetArtifactServiceImpl.class); |
43 | 43 |
44 | 44 |
45 public static final String ERROR_DESCRIBE_ARTIFACT = | 45 public static final String ERROR_DESCRIBE_ARTIFACT = |
46 "error_describe_artifact"; | 46 "error_describe_artifact"; |
54 String locale, | 54 String locale, |
55 String uuid, | 55 String uuid, |
56 String hash) | 56 String hash) |
57 throws ServerException | 57 throws ServerException |
58 { | 58 { |
59 logger.info("GetArtifactServiceImpl.getArtifact"); | 59 log.info("GetArtifactServiceImpl.getArtifact"); |
60 | 60 |
61 String url = getServletContext().getInitParameter("server-url"); | 61 String url = getServletContext().getInitParameter("server-url"); |
62 | 62 |
63 Document describe = ClientProtocolUtils.newDescribeDocument( | 63 Document describe = ClientProtocolUtils.newDescribeDocument( |
64 uuid, hash, true); | 64 uuid, hash, true); |
84 if (result == null || !result.equals(OPERATION_FAILURE)) { | 84 if (result == null || !result.equals(OPERATION_FAILURE)) { |
85 return (Artifact) new FLYSArtifactCreator().create(description); | 85 return (Artifact) new FLYSArtifactCreator().create(description); |
86 } | 86 } |
87 } | 87 } |
88 catch (ConnectionException ce) { | 88 catch (ConnectionException ce) { |
89 logger.error(ce, ce); | 89 log.error(ce, ce); |
90 } | 90 } |
91 | 91 |
92 throw new ServerException(ERROR_DESCRIBE_ARTIFACT); | 92 throw new ServerException(ERROR_DESCRIBE_ARTIFACT); |
93 } | 93 } |
94 } | 94 } |