Class OpenFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

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

      Constructors 
      Constructor Description
      OpenFilter()  
    • 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)  
      static java.lang.String getRequestURI​(javax.servlet.ServletRequest request)
      After forwarding to shell.jsp original requestURL is lost, so it is preserved as an attribute.
      void init​(javax.servlet.FilterConfig filterConfig)  
      • Methods inherited from class java.lang.Object

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

      • OpenFilter

        public OpenFilter()
    • 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
      • getRequestURI

        public static final java.lang.String getRequestURI​(javax.servlet.ServletRequest request)
        After forwarding to shell.jsp original requestURL is lost, so it is preserved as an attribute.
        Returns:
        preserved URI or null