类 AbstractShenyuPlugin

java.lang.Object
org.apache.shenyu.plugin.base.AbstractShenyuPlugin
所有已实现的接口:
org.apache.shenyu.plugin.api.ShenyuPlugin

public abstract class AbstractShenyuPlugin extends Object implements org.apache.shenyu.plugin.api.ShenyuPlugin
abstract shenyu plugin please extends.
  • 构造器概要

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

    修饰符和类型
    方法
    说明
    protected abstract reactor.core.publisher.Mono<Void>
    doExecute(org.springframework.web.server.ServerWebExchange exchange, org.apache.shenyu.plugin.api.ShenyuPluginChain chain, org.apache.shenyu.common.dto.SelectorData selector, org.apache.shenyu.common.dto.RuleData rule)
    this is Template Method child has implements your own logic.
    reactor.core.publisher.Mono<Void>
    execute(org.springframework.web.server.ServerWebExchange exchange, org.apache.shenyu.plugin.api.ShenyuPluginChain chain)
    Process the Web request and (optionally) delegate to the next ShenyuPlugin through the given ShenyuPluginChain.
    protected String
    getRawPath(org.springframework.web.server.ServerWebExchange exchange)
     
    protected reactor.core.publisher.Mono<Void>
    handleRuleIfNull(String pluginName, org.springframework.web.server.ServerWebExchange exchange, org.apache.shenyu.plugin.api.ShenyuPluginChain chain)
    Handle rule if null mono.
    protected reactor.core.publisher.Mono<Void>
    handleSelectorIfNull(String pluginName, org.springframework.web.server.ServerWebExchange exchange, org.apache.shenyu.plugin.api.ShenyuPluginChain chain)
    Handle selector if null mono.

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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 org.apache.shenyu.plugin.api.ShenyuPlugin

    after, before, getOrder, named, skip, skip, skipExcept, skipExceptHttpLike
  • 构造器详细资料

    • AbstractShenyuPlugin

      public AbstractShenyuPlugin()
  • 方法详细资料

    • doExecute

      protected abstract reactor.core.publisher.Mono<Void> doExecute(org.springframework.web.server.ServerWebExchange exchange, org.apache.shenyu.plugin.api.ShenyuPluginChain chain, org.apache.shenyu.common.dto.SelectorData selector, org.apache.shenyu.common.dto.RuleData rule)
      this is Template Method child has implements your own logic.
      参数:
      exchange - exchange the current server exchange ServerWebExchange
      chain - chain the current chain ServerWebExchange
      selector - selector SelectorData
      rule - rule RuleData
      返回:
      Mono<Void> to indicate when request handling is complete
    • execute

      public reactor.core.publisher.Mono<Void> execute(org.springframework.web.server.ServerWebExchange exchange, org.apache.shenyu.plugin.api.ShenyuPluginChain chain)
      Process the Web request and (optionally) delegate to the next ShenyuPlugin through the given ShenyuPluginChain.
      指定者:
      execute 在接口中 org.apache.shenyu.plugin.api.ShenyuPlugin
      参数:
      exchange - the current server exchange
      chain - provides a way to delegate to the next plugin
      返回:
      Mono<Void> to indicate when request processing is complete
    • getRawPath

      protected String getRawPath(org.springframework.web.server.ServerWebExchange exchange)
    • handleSelectorIfNull

      protected reactor.core.publisher.Mono<Void> handleSelectorIfNull(String pluginName, org.springframework.web.server.ServerWebExchange exchange, org.apache.shenyu.plugin.api.ShenyuPluginChain chain)
      Handle selector if null mono.
      参数:
      pluginName - the plugin name
      exchange - the exchange
      chain - the chain
      返回:
      the mono
    • handleRuleIfNull

      protected reactor.core.publisher.Mono<Void> handleRuleIfNull(String pluginName, org.springframework.web.server.ServerWebExchange exchange, org.apache.shenyu.plugin.api.ShenyuPluginChain chain)
      Handle rule if null mono.
      参数:
      pluginName - the plugin name
      exchange - the exchange
      chain - the chain
      返回:
      the mono