Package com.rosivanyshyn.controller.security.filter

# Class AccessFilter

java.lang.Object
com.rosivanyshyn.controller.security.filter.AccessFilter

All Implemented Interfaces:
  `jakarta.servlet.Filter`

@WebFilter("/front") public class AccessFilter extends Object implements jakarta.servlet.Filter
Access Filter class.
Parse XML security access list from WEB-INF to comparison with requested page and check if user have access to it
The comparison chain consists of three stages:
`if URL exist` -> `if user log in` -> `if user have access to page`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AccessFilter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `final void`
  `destroy()`
  `final void`
  `doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)`
  `final void`
  `init(jakarta.servlet.FilterConfig fConfig)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AccessFilter

    public AccessFilter()

- ## Method Details

  - ### destroy

    public final void destroy()
    Specified by:
      `destroy` in interface `jakarta.servlet.Filter`

  - ### doFilter

    public final void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
    Specified by:
      `doFilter` in interface `jakarta.servlet.Filter`
    Throws:
      `IOException`
      `jakarta.servlet.ServletException`

  - ### init

    public final void init(jakarta.servlet.FilterConfig fConfig) throws jakarta.servlet.ServletException
    Specified by:
      `init` in interface `jakarta.servlet.Filter`
    Throws:
      `jakarta.servlet.ServletException`