X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=runtime%2Forg.argeo.slc.server%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fweb%2Fmvc%2FServiceController.java;h=42a0f5f5dcaa4afc90c86bf147a327bf3d67587d;hb=670fd922c2d88faea0f48fef49371e5c0678436a;hp=4d74a9fb932c20544bf62f7365b77d1c6301e091;hpb=43f284a9b05260113630dfa3175038631c1c09f4;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/web/mvc/ServiceController.java b/runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/web/mvc/ServiceController.java index 4d74a9fb9..42a0f5f5d 100644 --- a/runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/web/mvc/ServiceController.java +++ b/runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/web/mvc/ServiceController.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2010 Mathieu Baudier + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.argeo.slc.web.mvc; import java.util.ArrayList; @@ -12,8 +28,6 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.io.FilenameUtils; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.argeo.slc.SlcException; import org.argeo.slc.core.attachment.AttachmentsStorage; import org.argeo.slc.core.attachment.SimpleAttachment; @@ -38,7 +52,7 @@ import org.springframework.web.bind.annotation.RequestParam; @Controller public class ServiceController { - private final static Log log = LogFactory.getLog(ServiceController.class); +// private final static Log log = LogFactory.getLog(ServiceController.class); // Constants public final static String KEY_ANSWER = "__answer"; @@ -191,10 +205,6 @@ public class ServiceController { protected ObjectList listResults( @RequestParam(value = "collectionId", required = false) String collectionId, HttpServletRequest request) { - - if (log.isDebugEnabled()) - log.debug("In ServiceController :: listResults.service"); - Map parameterMap = request.getParameterMap(); Map attributes = new HashMap(); for (String parameter : parameterMap.keySet()) { @@ -257,8 +267,6 @@ public class ServiceController { @RequestMapping("/listAgents.service") protected ObjectList listAgents() { - if (log.isDebugEnabled()) - log.debug("In ServiceController :: listAgents.service"); List list = slcAgentDescriptorDao .listSlcAgentDescriptors(); return new ObjectList(list);