类 AuthGlobalFilter

java.lang.Object
com.mbap.gateway.filter.AuthGlobalFilter
所有已实现的接口:
org.springframework.cloud.gateway.filter.GlobalFilter, org.springframework.core.Ordered

@Component("com.mbap.gateway.filter.AuthGlobalFilter") public class AuthGlobalFilter extends Object implements org.springframework.cloud.gateway.filter.GlobalFilter, org.springframework.core.Ordered
oauth2接口鉴权成功后,进入gateway过滤器,这里可以做进入路由前,给请求里面加参数或者做进一步验证过滤
作者:
Amanda.Z
  • 字段概要

    从接口继承的字段 org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    reactor.core.publisher.Mono<Void>
    filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.cloud.gateway.filter.GatewayFilterChain chain)
    过滤方法
    int
    设置过滤器顺序

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • AuthGlobalFilter

      public AuthGlobalFilter()
  • 方法详细资料

    • filter

      public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.cloud.gateway.filter.GatewayFilterChain chain)
      过滤方法
      指定者:
      filter 在接口中 org.springframework.cloud.gateway.filter.GlobalFilter
    • getOrder

      public int getOrder()
      设置过滤器顺序
      指定者:
      getOrder 在接口中 org.springframework.core.Ordered