类 NacosWebFilter

  • 所有已实现的接口:
    javax.servlet.Filter

    public class NacosWebFilter
    extends java.lang.Object
    implements javax.servlet.Filter
    Web encode filter.
    作者:
    Nacos
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      private static java.lang.String webRootPath  
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void destroy()  
      void doFilter​(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)  
      void init​(javax.servlet.FilterConfig filterConfig)  
      static java.lang.String rootPath()  
      static void setWebRootPath​(java.lang.String path)
      Easy for testing.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • webRootPath

        private static java.lang.String webRootPath
    • 构造器详细资料

      • NacosWebFilter

        public NacosWebFilter()
    • 方法详细资料

      • rootPath

        public static java.lang.String rootPath()
      • setWebRootPath

        public static void setWebRootPath​(java.lang.String path)
        Easy for testing.
        参数:
        path - web path.
      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
                  throws javax.servlet.ServletException
        指定者:
        init 在接口中 javax.servlet.Filter
        抛出:
        javax.servlet.ServletException
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws java.io.IOException,
                             javax.servlet.ServletException
        指定者:
        doFilter 在接口中 javax.servlet.Filter
        抛出:
        java.io.IOException
        javax.servlet.ServletException
      • destroy

        public void destroy()
        指定者:
        destroy 在接口中 javax.servlet.Filter