java Jetty 9 处理程序示例?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13363204/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Jetty 9 Handler Examples?
提问by Marty
I am building my first project with Jetty and I love the amount of control it gives. I'm going to use Jetty 9 but I'm having trouble finding examples of all the different types of handlers and how to use HandlerWrappers, HandlerLists, ServletContextHandler, etc.
我正在用 Jetty 构建我的第一个项目,我喜欢它提供的控制量。我将使用 Jetty 9,但我无法找到所有不同类型处理程序的示例以及如何使用 HandlerWrappers、HandlerLists、ServletContextHandler 等。
Are there any good resources out there with solid examples of these and anything else that might interest me/help me better my implementation?
是否有任何很好的资源,其中包含这些的可靠示例以及其他任何可能让我感兴趣/帮助我更好地实施的内容?
采纳答案by jesse mcconnell
We are working on jetty9 documentation here (it is a work in progress):
我们正在处理 jetty9 文档(这是一项正在进行的工作):
http://www.eclipse.org/jetty/documentation/current/
http://www.eclipse.org/jetty/documentation/current/
Documentation can be forked at github if you like to contribute, see the link at the bottom of any page.
如果您愿意贡献,可以在 github 上分叉文档,请参阅任何页面底部的链接。
Right now jetty itself will be the best example of any of these concepts, and we'll be expanding our embedded examples over the next few months. These are the current embedded examples.
现在,jetty 本身将是这些概念中的任何一个的最佳示例,我们将在接下来的几个月中扩展我们的嵌入式示例。这些是当前的嵌入式示例。
Also there are copious examples littered throughout the unit tests of jetty itself.
在整个码头本身的单元测试中,也有大量的例子。