Class SimpleAccessDeniedHandler

java.lang.Object
org.springframework.security.web.access.AccessDeniedHandlerImpl
com.erudika.para.server.security.SimpleAccessDeniedHandler
All Implemented Interfaces:
org.springframework.security.web.access.AccessDeniedHandler

public class SimpleAccessDeniedHandler extends org.springframework.security.web.access.AccessDeniedHandlerImpl
Access denied handler.
Author:
Alex Bogdanovski [[email protected]]
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException accessDeniedException)
     

    Methods inherited from class org.springframework.security.web.access.AccessDeniedHandlerImpl

    setErrorPage

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SimpleAccessDeniedHandler

      public SimpleAccessDeniedHandler(String errorPage)
      Default constructor.
      Parameters:
      errorPage - error page path e.g. "/error.html"
  • Method Details

    • handle

      public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.access.AccessDeniedException accessDeniedException) throws IOException, javax.servlet.ServletException
      Specified by:
      handle in interface org.springframework.security.web.access.AccessDeniedHandler
      Overrides:
      handle in class org.springframework.security.web.access.AccessDeniedHandlerImpl
      Throws:
      IOException
      javax.servlet.ServletException