Class ByRoleUrlAutorizationSpringFilter

  • All Implemented Interfaces:
    javax.servlet.Filter, org.springframework.beans.factory.InitializingBean

    public class ByRoleUrlAutorizationSpringFilter
    extends java.lang.Object
    implements javax.servlet.Filter, org.springframework.beans.factory.InitializingBean
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      protected void checkAutorization​(org.springframework.security.web.FilterInvocation fi)  
      void destroy()
      Not used (we rely on IoC container lifecycle services instead)
      void doFilter​(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)  
      void init​(javax.servlet.FilterConfig arg0)
      Not used (we rely on IoC container lifecycle services instead)
      void setSecurityMetadataSource​(org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource newSource)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByRoleUrlAutorizationSpringFilter

        public ByRoleUrlAutorizationSpringFilter()
    • Method Detail

      • init

        public void init​(javax.servlet.FilterConfig arg0)
                  throws javax.servlet.ServletException
        Not used (we rely on IoC container lifecycle services instead)
        Specified by:
        init in interface javax.servlet.Filter
        Parameters:
        arg0 - ignored
        Throws:
        javax.servlet.ServletException - never thrown
      • destroy

        public void destroy()
        Not used (we rely on IoC container lifecycle services instead)
        Specified by:
        destroy in interface javax.servlet.Filter
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • checkAutorization

        protected void checkAutorization​(org.springframework.security.web.FilterInvocation fi)
      • setSecurityMetadataSource

        public void setSecurityMetadataSource​(org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource newSource)