Package test.security

Source Code of test.security.SecurityAction

package test.security;

import es.internna.annotations.LogDebug;
import es.internna.spring.annotations.AutowireToController;
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;

@UrlMapping("security.allow.action")
@AutowireToController(controllerBean="actionController")
public class SecurityAction extends AbstractRequestHandler
{
    private Log log = LogFactory.getLog(AnnotationUrlHandlerMapping.class);
   
    @PermitAll
    @LogDebug(loggerClass=SecurityAction.class)
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        return new ModelAndView("reached");
    }
}
TOP

Related Classes of test.security.SecurityAction

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.