forked from openremote/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 1
/
enableRequestDumping.xsl
33 lines (29 loc) · 1.26 KB
/
enableRequestDumping.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:undertow="urn:jboss:domain:undertow:3.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="//undertow:host">
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
<xsl:element name="filter-ref" namespace="urn:jboss:domain:undertow:3.0">
<xsl:attribute name="name">request-dumper</xsl:attribute>
</xsl:element>
</xsl:copy>
</xsl:template>
<xsl:template match="//undertow:filters">
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
<xsl:element name="filter" namespace="urn:jboss:domain:undertow:3.0">
<xsl:attribute name="name">request-dumper</xsl:attribute>
<xsl:attribute name="module">io.undertow.core</xsl:attribute>
<xsl:attribute name="class-name">io.undertow.server.handlers.RequestDumpingHandler</xsl:attribute>
</xsl:element>
</xsl:copy>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>