[英]Custom sonarqube plugin - proxy service
I've a requirement to develop a custom sonarqube plugin
that will act as a proxy service. 我需要开发一个
custom sonarqube plugin
,它将充当代理服务。
I'm thinking of creating a simple Java application which: 我正在考虑创建一个简单的Java应用程序:
My question is, is it possible within sonarqube? 我的问题是,在sonarqube内是否可能?
Supposing, it is possible: Second question - I've gone thru sonarqube documentation , but I'm not able to pinpoint which plugin class to use. 假设,这是可能的:第二个问题 - 我已经通过sonarqube文档 ,但我无法确定使用哪个插件类。 Should I use PageDefinition only?
我应该只使用PageDefinition吗?
Please suggest. 请建议。 Thanks
谢谢
PS - Similar question was posted on sonarqube community , posting it here for broader audience. PS - 类似的问题发布在sonarqube社区 ,在这里张贴给更广泛的观众。
I'm thinking of creating a simple Java application which:
我正在考虑创建一个简单的Java应用程序:
- Application will keep on listening for request
应用程序将继续倾听请求
- Receives a REST api URL (some 3rd party address) from caller as request
根据请求从呼叫者接收REST api URL(某些第三方地址)
- Hits REST api and receives JSON response back
点击REST api并收回JSON响应
- Forward the response back to original caller
将响应转发回原始呼叫者
My question is, is it possible within sonarqube?
我的问题是,在sonarqube内是否可能?
It is possible to add third party library into a Custom SonarQube Plugin. 可以将第三方库添加到Custom SonarQube插件中。 You can create tasks in which you can do whatever you implement.
您可以创建可以执行任何操作的任务。
Supposing, it is possible: Second question - I've gone thru sonarqube documentation, but I'm not able to pinpoint which plugin class to use.
假设,这是可能的:第二个问题 - 我已经通过sonarqube文档,但我无法确定使用哪个插件类。 Should I use PageDefinition only?
我应该只使用PageDefinition吗?
You should implement WebService Extension Point which allow you to extend SonarQube web API and add new bahaviours on requests. 您应该实现WebService Extension Point ,它允许您扩展SonarQube Web API并在请求中添加新的bahaviours。
PageDefinition is a way to add some web pages on the WebUI. PageDefinition是一种在WebUI上添加一些网页的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.