]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/web/mvc/ServiceController.java
Remove unused classes in org.argeo.slc.server package
[gpl/argeo-slc.git] / runtime / org.argeo.slc.server / src / main / java / org / argeo / slc / web / mvc / ServiceController.java
index 4d74a9fb932c20544bf62f7365b77d1c6301e091..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
@@ -191,10 +205,6 @@ public class ServiceController {
        protected ObjectList listResults(\r
                        @RequestParam(value = "collectionId", required = false) String collectionId,\r
                        HttpServletRequest request) {\r
-\r
-               if (log.isDebugEnabled())\r
-                       log.debug("In ServiceController :: listResults.service");\r
-\r
                Map<String, String[]> parameterMap = request.getParameterMap();\r
                Map<String, String> attributes = new HashMap<String, String>();\r
                for (String parameter : parameterMap.keySet()) {\r
@@ -257,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