【问题标题】:Example of using Undertow’s text based handler configuration format使用 Undertow 的基于文本的处理程序配置格式的示例
【发布时间】:2015-02-13 09:59:07
【问题描述】:

根据the spec,Undertow 有一个不错的基于文本的配置。

但是我没有看到一行示例代码如何使用这种配置启动 Undertow。

如何使用Undertow.builder()...通过文本配置构建Undertow服务器。

我正在尝试做类似的事情

path-prefix['/api'] -> reverse-proxy[{'http://myserver.com'}]
path-prefix['/*'] -> serve-static-files-here-somehow

【问题讨论】:

    标签: java reverse-proxy undertow


    【解决方案1】:

    查看PredicatedHandlersParser 和关联的test case

    【讨论】:

      猜你喜欢
      • 2015-05-29
      • 1970-01-01
      • 2014-05-15
      • 2017-05-02
      • 1970-01-01
      • 1970-01-01
      • 2018-04-23
      • 2016-09-05
      • 1970-01-01
      相关资源
      最近更新 更多