@Configuration
@ConditionalOnProperty(value="shenyu.plugins.response.enabled",
havingValue="true",
matchIfMissing=true)
public class ResponsePluginConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
ResponsePluginConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.shenyu.plugin.api.ShenyuPlugin |
responsePlugin(org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.plugin.response.strategy.MessageWriter>> httpWriter)
Response plugin.
|
org.apache.shenyu.plugin.response.strategy.MessageWriter |
rpcMessageWriter()
Rpc message writer message writer.
|
@Bean public org.apache.shenyu.plugin.api.ShenyuPlugin responsePlugin(org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.plugin.response.strategy.MessageWriter>> httpWriter)
httpWriter - the http writer@Bean
@ConditionalOnProperty(name="shenyu.plugins.response.rpc-message-writer",
havingValue="true",
matchIfMissing=true)
public org.apache.shenyu.plugin.response.strategy.MessageWriter rpcMessageWriter()
Copyright © 2023 The Apache Software Foundation. All rights reserved.