Uses of Class
org.miaixz.bus.vortex.Context

Packages that use Context
Package
Description
基于spring webflux 开发的API网关
安全规则等过滤
  • Uses of Context in org.miaixz.bus.vortex

    Methods in org.miaixz.bus.vortex that return Context
    Modifier and Type
    Method
    Description
    static Context
    Context.get(org.springframework.web.reactive.function.server.ServerRequest request)
    从 ServerRequest 获取或初始化上下文对象
    static Context
    Context.get(org.springframework.web.server.ServerWebExchange exchange)
    从 ServerWebExchange 获取或初始化上下文对象
    Methods in org.miaixz.bus.vortex with parameters of type Context
    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<org.springframework.web.reactive.function.server.ServerResponse>
    Router.route(org.springframework.web.reactive.function.server.ServerRequest request, Context context, Assets assets)
    路由请求到目标服务
  • Uses of Context in org.miaixz.bus.vortex.filter

    Methods in org.miaixz.bus.vortex.filter that return Context
    Modifier and Type
    Method
    Description
    protected Context
    AbstractFilter.getContext(org.springframework.web.server.ServerWebExchange exchange)
    获取请求上下文
    Methods in org.miaixz.bus.vortex.filter with parameters of type Context
    Modifier and Type
    Method
    Description
    protected void
    AuthorizeFilter.checkToken(org.springframework.web.server.ServerWebExchange exchange, Context context, Assets assets, Map<String,String> params)
    校验令牌(如果资产要求)并将认证结果参数填充到请求参数中
    protected abstract reactor.core.publisher.Mono<Void>
    AbstractFilter.doFilter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain, Context context)
    内部过滤方法,由子类实现具体逻辑
    protected reactor.core.publisher.Mono<Void>
    AuthorizeFilter.doFilter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain, Context context)
    内部过滤方法,执行授权验证逻辑
    protected reactor.core.publisher.Mono<Void>
    CipherFilter.doFilter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain, Context context)
    内部过滤方法,执行加解密逻辑
    protected reactor.core.publisher.Mono<Void>
    FormatFilter.doFilter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain, Context context)
    内部过滤方法,执行响应格式化逻辑
    protected reactor.core.publisher.Mono<Void>
    LimitFilter.doFilter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain, Context context)
    内部过滤方法,执行限流逻辑
    protected reactor.core.publisher.Mono<Void>
    PrimaryFilter.doFilter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain, Context context)
    内部过滤方法,处理请求参数并进行校验
    protected Assets
    AbstractFilter.getAssets(Context context)
    获取资产信息
    protected Map<String,String>
    AbstractFilter.getRequestMap(Context context)
    获取请求参数映射