WildFly Web配置表达式中是否支持任何完整的变量列表(例如重写过滤器)?像%U,%h,%p …
<过滤器>< rewrite name =“http-to-https”redirect =“true”…
这些是使用的属性 AccessLogHandler.java 用于记录。
AccessLogHandler.java
此外,调用者可以指定以下别名之一 常用模式:
%h %l %u %t "%r" %s %b
%h %l %u %t "%r" %s %b "%{i,Referer}" "%{i,User-Agent}"
还支持从cookie中写入信息 标题或会话 它以apache语法为模型:
%{i,xxx}
%{o,xxx}
%{c,xxx}
%{r,xxx}
%{s,xxx}
当前的WildFly(15)使用Undertow 2.0,因此请查看有关谓词的Undertow文档: http://undertow.io/undertow-docs/undertow-docs-2.0.0/predicates-attributes-handlers.html