Configuration WildFly表达式变量
WildFly web配置表达式(如重写过滤器)中是否有支持的完整变量列表?像%U、%h、%pConfiguration WildFly表达式变量,configuration,jboss,wildfly,java-ee-8,Configuration,Jboss,Wildfly,Java Ee 8,WildFly web配置表达式(如重写过滤器)中是否有支持的完整变量列表?像%U、%h、%p <filters> <rewrite name="http-to-https" redirect="true" target="https://myhostname:8443%U"/> </filters> <server name="default-server"> <host name="default-host" alias="lo
<filters>
<rewrite name="http-to-https" redirect="true" target="https://myhostname:8443%U"/>
</filters>
<server name="default-server">
<host name="default-host" alias="localhost">
...
<filter-ref name="http-to-https" predicate="equals(%p,8080)"/>
...
这些是AccessLogHandler.java
用于日志的属性。
- 公共-
%h%l%u%t“%r”%s%b
- 合二为一-
%h%l%u%t“%r”%s%b“%{i,Referer}”“%{i,用户代理}”
它是按照apache语法建模的:
用于传入标头%{i,xxx}
用于传出响应头%{o,xxx}
用于特定cookie%{c,xxx}
xxx是ServletRequest中的一个属性%{r,xxx}
xxx是HttpSession中的一个属性%{s,xxx}
AccessLogHandler.java
用于日志的属性。
- 公共-
%h%l%u%t“%r”%s%b
- 合二为一-
%h%l%u%t“%r”%s%b“%{i,Referer}”“%{i,用户代理}”
它是按照apache语法建模的:
用于传入标头%{i,xxx}
用于传出响应头%{o,xxx}
用于特定cookie%{c,xxx}
xxx是ServletRequest中的一个属性%{r,xxx}
xxx是HttpSession中的一个属性%{s,xxx}