Class AccessFilter
java.lang.Object
com.rosivanyshyn.controller.security.filter.AccessFilter
- All Implemented Interfaces:
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:
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 -
Method Summary
-
Constructor Details
-
AccessFilter
public AccessFilter()
-
-
Method Details
-
destroy
public final void destroy()- Specified by:
destroyin interfacejakarta.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:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
init
public final void init(jakarta.servlet.FilterConfig fConfig) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Filter- Throws:
jakarta.servlet.ServletException
-