comparison gwt-client/src/main/java/org/dive4elements/river/client/server/CollectionItemAttributeServiceImpl.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
38 */ 38 */
39 public class CollectionItemAttributeServiceImpl 39 public class CollectionItemAttributeServiceImpl
40 extends RemoteServiceServlet 40 extends RemoteServiceServlet
41 implements CollectionItemAttributeService 41 implements CollectionItemAttributeService
42 { 42 {
43 private static final Logger logger = 43 private static final Logger log =
44 Logger.getLogger(CollectionItemAttributeServiceImpl.class); 44 Logger.getLogger(CollectionItemAttributeServiceImpl.class);
45 45
46 46
47 public static final String XPATH_RESULT = "/art:result/text()"; 47 public static final String XPATH_RESULT = "/art:result/text()";
48 48
56 Collection collection, 56 Collection collection,
57 String artifact, 57 String artifact,
58 String locale) 58 String locale)
59 throws ServerException 59 throws ServerException
60 { 60 {
61 logger.info( 61 log.info(
62 "CollectionItemAttributeServiceImpl.getCollectionItemAttribute"); 62 "CollectionItemAttributeServiceImpl.getCollectionItemAttribute");
63 63
64 String url = getServletContext().getInitParameter("server-url"); 64 String url = getServletContext().getInitParameter("server-url");
65 65
66 Document requestDoc = XMLUtils.newDocument(); 66 Document requestDoc = XMLUtils.newDocument();
89 collection.identifier(), 89 collection.identifier(),
90 new DocumentResponseHandler()); 90 new DocumentResponseHandler());
91 return readXML (res, artifact); 91 return readXML (res, artifact);
92 } 92 }
93 catch (ConnectionException ce) { 93 catch (ConnectionException ce) {
94 logger.error(ce, ce); 94 log.error(ce, ce);
95 } 95 }
96 96
97 throw new ServerException(ERROR_NO_STYLES_FOUND); 97 throw new ServerException(ERROR_NO_STYLES_FOUND);
98 } 98 }
99 99
103 String artifact, 103 String artifact,
104 String locale, 104 String locale,
105 CollectionItemAttribute attributes) 105 CollectionItemAttribute attributes)
106 throws ServerException 106 throws ServerException
107 { 107 {
108 logger.info( 108 log.info(
109 "CollectionItemAttributeServiceImpl.setCollectionItemAttribute"); 109 "CollectionItemAttributeServiceImpl.setCollectionItemAttribute");
110 110
111 String url = getServletContext().getInitParameter("server-url"); 111 String url = getServletContext().getInitParameter("server-url");
112 112
113 Document doc = writeXML(attributes, artifact); 113 Document doc = writeXML(attributes, artifact);
120 new DocumentResponseHandler()); 120 new DocumentResponseHandler());
121 121
122 return; 122 return;
123 } 123 }
124 catch (ConnectionException ce) { 124 catch (ConnectionException ce) {
125 logger.error(ce, ce); 125 log.error(ce, ce);
126 throw new ServerException(ce.getLocalizedMessage()); 126 throw new ServerException(ce.getLocalizedMessage());
127 } 127 }
128 } 128 }
129 129
130 protected CollectionItemAttribute readXML(Document doc, String artifact) 130 protected CollectionItemAttribute readXML(Document doc, String artifact)

http://dive4elements.wald.intevation.org