类 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.intgetOrder()return plugin order .protected StringgetRawPath(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) named()acquire plugin name.booleanskip(org.springframework.web.server.ServerWebExchange exchange) plugin is execute.protected abstract voidtransmitRpcContext(Map<String, String> rpcContext) 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
- 覆盖:
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 ServerWebExchangechain- chain the current chain ServerWebExchangeselector- selector SelectorDatarule- rule RuleDatametaData- the medataparam- the param- 返回:
Mono<Void>to indicate when request handling is complete
-
transmitRpcContext
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 ServerWebExchangechain- chain the current chain ServerWebExchangeselector- selector SelectorDatarule- 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
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
-