package test.web;
import es.internna.annotations.LogDebug;
import es.internna.spring.annotations.AutowireToController;
import es.internna.spring.annotations.Bean;
import es.internna.spring.annotations.UrlMapping;
import es.internna.spring.context.AnnotationUrlHandlerMapping;
import es.internna.spring.mvc.api.AbstractRequestHandler;
import javax.annotation.security.PermitAll;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.ModelAndView;
@Bean(name="oneActionBean")
@AutowireToController(controllerBean="actionController")
@UrlMapping("one.action")
public class Action extends AbstractRequestHandler
{
private Log log = LogFactory.getLog(AnnotationUrlHandlerMapping.class);
@PermitAll
@LogDebug(loggerClass=Action.class)
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception
{
return new ModelAndView("reached");
}
}