类 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 nextShenyuPluginthrough the givenShenyuPluginChain.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) 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 ServerWebExchangechain- chain the current chain ServerWebExchangeselector- selector SelectorDatarule- 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 nextShenyuPluginthrough the givenShenyuPluginChain.- 指定者:
execute在接口中org.apache.shenyu.plugin.api.ShenyuPlugin- 参数:
exchange- the current server exchangechain- provides a way to delegate to the next plugin- 返回:
Mono<Void>to indicate when request processing is complete
-
getRawPath
-
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 nameexchange- the exchangechain- 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 nameexchange- the exchangechain- the chain- 返回:
- the mono
-