public final class ShenyuWebHandler
extends java.lang.Object
implements org.springframework.web.server.WebHandler, org.springframework.context.ApplicationListener<org.apache.shenyu.plugin.base.cache.PluginHandlerEvent>
| 构造器和说明 |
|---|
ShenyuWebHandler(java.util.List<org.apache.shenyu.plugin.api.ShenyuPlugin> plugins,
ShenyuLoaderService shenyuLoaderService,
org.apache.shenyu.common.config.ShenyuConfig shenyuConfig)
Instantiates a new shenyu web handler.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<org.apache.shenyu.plugin.api.ShenyuPlugin> |
getPlugins()
Gets plugins.
|
reactor.core.publisher.Mono<java.lang.Void> |
handle(org.springframework.web.server.ServerWebExchange exchange)
Handle the web server exchange.
|
void |
onApplicationEvent(org.apache.shenyu.plugin.base.cache.PluginHandlerEvent event)
listen plugin handler event and handle plugin.
|
void |
putExtPlugins(java.util.List<org.apache.shenyu.plugin.api.ShenyuPlugin> extPlugins)
Put ext plugins.
|
public ShenyuWebHandler(java.util.List<org.apache.shenyu.plugin.api.ShenyuPlugin> plugins,
ShenyuLoaderService shenyuLoaderService,
org.apache.shenyu.common.config.ShenyuConfig shenyuConfig)
plugins - the pluginsshenyuLoaderService - shenyuLoaderServiceshenyuConfig - plugins configpublic reactor.core.publisher.Mono<java.lang.Void> handle(@NonNull
org.springframework.web.server.ServerWebExchange exchange)
handle 在接口中 org.springframework.web.server.WebHandlerexchange - the current server exchangeMono<Void> to indicate when request handling is completepublic java.util.List<org.apache.shenyu.plugin.api.ShenyuPlugin> getPlugins()
public void putExtPlugins(java.util.List<org.apache.shenyu.plugin.api.ShenyuPlugin> extPlugins)
extPlugins - the ext pluginspublic void onApplicationEvent(org.apache.shenyu.plugin.base.cache.PluginHandlerEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.apache.shenyu.plugin.base.cache.PluginHandlerEvent>event - sort plugin eventCopyright © 2026 The Apache Software Foundation. All rights reserved.