类 AbstractDubboPlugin

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

public abstract class AbstractDubboPlugin extends org.apache.shenyu.plugin.base.AbstractShenyuPlugin
AbstractDubboPlugin.
  • 构造器概要

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

    修饰符和类型
    方法
    说明
    protected abstract reactor.core.publisher.Mono<Void>
    doDubboInvoker(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, org.apache.shenyu.common.dto.MetaData metaData, String param)
    do dubbo invoker.
    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 Implement your own logic.
    int
    return plugin order .
    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)
     
    protected reactor.core.publisher.Mono<Void>
    handleSelectorIfNull(String pluginName, org.springframework.web.server.ServerWebExchange exchange, org.apache.shenyu.plugin.api.ShenyuPluginChain chain)
     
    acquire plugin name.
    boolean
    skip(org.springframework.web.server.ServerWebExchange exchange)
    plugin is execute.
    protected abstract void
    transmit rpc context when user rpc call.

    从类继承的方法 org.apache.shenyu.plugin.base.AbstractShenyuPlugin

    execute

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

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

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

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

    • AbstractDubboPlugin

      public AbstractDubboPlugin()
  • 方法详细资料

    • getRawPath

      protected String getRawPath(org.springframework.web.server.ServerWebExchange exchange)
      覆盖:
      getRawPath 在类中 org.apache.shenyu.plugin.base.AbstractShenyuPlugin
    • doDubboInvoker

      protected abstract reactor.core.publisher.Mono<Void> doDubboInvoker(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, org.apache.shenyu.common.dto.MetaData metaData, String param)
      do dubbo invoker.
      参数:
      exchange - exchange the current server exchange ServerWebExchange
      chain - chain the current chain ServerWebExchange
      selector - selector SelectorData
      rule - rule RuleData
      metaData - the medata
      param - the param
      返回:
      Mono<Void> to indicate when request handling is complete
    • transmitRpcContext

      protected abstract void transmitRpcContext(Map<String,String> rpcContext)
      transmit rpc context when user rpc call.
      参数:
      rpcContext - rpc context map.
    • doExecute

      public 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 Implement your own logic.
      指定者:
      doExecute 在类中 org.apache.shenyu.plugin.base.AbstractShenyuPlugin
      参数:
      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
    • getOrder

      public int getOrder()
      return plugin order . This attribute To determine the plugin execution order in the same type plugin.
      返回:
      int order
    • named

      public String named()
      acquire plugin name. this is plugin name define you must Provide the right name. if you impl AbstractShenyuPlugin this attribute not use.
      返回:
      plugin name.
    • skip

      public boolean skip(org.springframework.web.server.ServerWebExchange exchange)
      plugin is execute. if return true this plugin can not execute.
      参数:
      exchange - the current server exchange
      返回:
      default false.
    • handleSelectorIfNull

      protected reactor.core.publisher.Mono<Void> handleSelectorIfNull(String pluginName, org.springframework.web.server.ServerWebExchange exchange, org.apache.shenyu.plugin.api.ShenyuPluginChain chain)
      覆盖:
      handleSelectorIfNull 在类中 org.apache.shenyu.plugin.base.AbstractShenyuPlugin
    • handleRuleIfNull

      protected reactor.core.publisher.Mono<Void> handleRuleIfNull(String pluginName, org.springframework.web.server.ServerWebExchange exchange, org.apache.shenyu.plugin.api.ShenyuPluginChain chain)
      覆盖:
      handleRuleIfNull 在类中 org.apache.shenyu.plugin.base.AbstractShenyuPlugin