Class AuthorizationInterceptorImpl

  • All Implemented Interfaces:
    AuthorizationInterceptor, org.springframework.web.servlet.AsyncHandlerInterceptor, org.springframework.web.servlet.HandlerInterceptor

    public class AuthorizationInterceptorImpl
    extends Object
    implements org.springframework.web.servlet.AsyncHandlerInterceptor, AuthorizationInterceptor
    Author:
    Pavel.Sher Date: 17.03.2006
    • Method Detail

      • addPathNotRequiringAuth

        public void addPathNotRequiringAuth​(@NotNull
                                            Class<?> handlerType,
                                            @NotNull
                                            String path)
        Adds path associated wit particular handler class that does not require authentication check.
        Specified by:
        addPathNotRequiringAuth in interface AuthorizationInterceptor
        Parameters:
        handlerType - a handler class that does not require authentication for provided path (in case handlerType is null, provided pass will be associated with all handlers).
        path - a path.
      • preHandle

        public boolean preHandle​(@NotNull
                                 javax.servlet.http.HttpServletRequest request,
                                 @NotNull
                                 javax.servlet.http.HttpServletResponse response,
                                 Object handler)
                          throws Exception
        Specified by:
        preHandle in interface org.springframework.web.servlet.HandlerInterceptor
        Throws:
        Exception