Class AuthFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class AuthFilter
    extends java.lang.Object
    implements javax.servlet.Filter
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthFilter()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      void doFilter​(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)  
      void forward​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String page)  
      static User getUser​(javax.servlet.http.HttpServletRequest request)  
      void init​(javax.servlet.FilterConfig filterConfig)  
      • Methods inherited from class java.lang.Object

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

      • REQUEST_ATTRIBUTE_USER_ID_NAME

        public static final java.lang.String REQUEST_ATTRIBUTE_USER_ID_NAME
        See Also:
        Constant Field Values
      • REQUEST_ATTRIBUTE_USER_IP_ADDRESS_NAME

        public static final java.lang.String REQUEST_ATTRIBUTE_USER_IP_ADDRESS_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • AuthFilter

        public AuthFilter()
    • Method Detail

      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest servletRequest,
                             javax.servlet.ServletResponse servletResponse,
                             javax.servlet.FilterChain filterChain)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • forward

        public void forward​(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            java.lang.String page)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getUser

        public static final User getUser​(javax.servlet.http.HttpServletRequest request)