]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/web/mvc/ServiceController.java
clean org.argeo.slc.server project:
[gpl/argeo-slc.git] / runtime / org.argeo.slc.server / src / main / java / org / argeo / slc / web / mvc / ServiceController.java
index 7e858a3700ded32d993410aa25beea83695548e1..42a0f5f5dcaa4afc90c86bf147a327bf3d67587d 100644 (file)
@@ -1,3 +1,19 @@
+/*\r
+ * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *         http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
 package org.argeo.slc.web.mvc;\r
 \r
 import java.util.ArrayList;\r
@@ -12,8 +28,6 @@ import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;\r
 \r
 import org.apache.commons.io.FilenameUtils;\r
-import org.apache.commons.logging.Log;\r
-import org.apache.commons.logging.LogFactory;\r
 import org.argeo.slc.SlcException;\r
 import org.argeo.slc.core.attachment.AttachmentsStorage;\r
 import org.argeo.slc.core.attachment.SimpleAttachment;\r
@@ -38,7 +52,7 @@ import org.springframework.web.bind.annotation.RequestParam;
 @Controller\r
 public class ServiceController {\r
 \r
-       private final static Log log = LogFactory.getLog(ServiceController.class);\r
+//     private final static Log log = LogFactory.getLog(ServiceController.class);\r
 \r
        // Constants\r
        public final static String KEY_ANSWER = "__answer";\r
@@ -253,8 +267,6 @@ public class ServiceController {
 \r
        @RequestMapping("/listAgents.service")\r
        protected ObjectList listAgents() {\r
-               if (log.isDebugEnabled())\r
-                       log.debug("In ServiceController :: listAgents.service");\r
                List<SlcAgentDescriptor> list = slcAgentDescriptorDao\r
                                .listSlcAgentDescriptors();\r
                return new ObjectList(list);\r