PageHandler Extension
Summary
Extension for page handler
Extension Interface
org.apache.dubbo.container.page.PageHandler
Extension Configuration
<dubbo:protocol page="xxx,yyy" />
<!-- default configuration, will take effect if page attribute is not set in <dubbo:protocol> -->
<dubbo:provider page="xxx,yyy" />
Existing Extension
org.apache.dubbo.container.page.pages.HomePageHandler
org.apache.dubbo.container.page.pages.StatusPageHandler
org.apache.dubbo.container.page.pages.LogPageHandler
org.apache.dubbo.container.page.pages.SystemPageHandler
Extension Guide
Directory layout:
src
|-main
|-java
|-com
|-xxx
|-XxxPageHandler.java (PageHandler implementation)
|-resources
|-META-INF
|-dubbo
|-org.apache.dubbo.container.page.PageHandler (plain text file with the content: xxx=com.xxx.XxxPageHandler)
XxxPageHandler.java:
package com.xxx;
import org.apache.dubbo.container.page.PageHandler;
public class XxxPageHandler implements PageHandler {
public Group lookup(URL url) {
// ...
}
}
META-INF/dubbo/org.apache.dubbo.container.page.PageHandler:
xxx=com.xxx.XxxPageHandler
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified January 22, 2021: Merge branch 'master' of https://github.com/apache/dubbo-website (f48eac9)