码头嵌入在Eclipse RCP(Embed Jetty in Eclipse RCP)

2019-09-17 15:12发布

I am building a RCP application , where I need to monitor http traffic and show it to user. For that I require use of Embeded Jetty as transparent proxy.

I tried everything , followed this Tutorial But things just don't work. I get build exception. I tried adding Jetty jar as external dependency , but still no use.

Would appreciate any help. Also please let me know if there are any other ways of achieving this without use of jetty. (I tried Socks but it conflicts with RCP UI thread) Thank You.

Answer 1:

从广义上讲,你需要寻找到使Eclipse插件以及如何声明在eclipse插件项目的依赖。 什么你基本上是希望做的是写一点仅基​​于一个插件上下文我们的码头嵌入式实例代码,所以你的插件加载时,将触发码头服务器的启动。 您将加载码头的依赖关系为OSGi包。 请注意,在JUNO多码头8.1.3将是默认情况下可用。

它不是世界上最好的例子,但你可以看看我们的硬皮WTP插件的一些想法,至少在如何能配置使用第谷的事情,也许一些组织位。

http://git.eclipse.org/c/jetty/org.eclipse.jetty.wtp.git/



文章来源: Embed Jetty in Eclipse RCP