Add intercept-url@request-matcher-ref

Fixes gh-4097
This commit is contained in:
Rob Winch
2016-10-18 22:16:43 -05:00
parent f019ea89e7
commit af9139b613
8 changed files with 141 additions and 17 deletions

View File

@@ -366,8 +366,7 @@ intercept-url =
## Specifies the access attributes and/or filter list for a particular set of URLs.
element intercept-url {intercept-url.attlist, empty}
intercept-url.attlist &=
## The pattern which defines the URL path. The content will depend on the type set in the containing http element, so will default to ant path syntax.
attribute pattern {xsd:token}
(pattern | request-matcher-ref)
intercept-url.attlist &=
## The access configuration attributes that apply for the configured path.
attribute access {xsd:token}?

View File

@@ -1292,10 +1292,15 @@
</xs:attributeGroup>
<xs:attributeGroup name="intercept-url.attlist">
<xs:attribute name="pattern" use="required" type="xs:token">
<xs:attribute name="pattern" type="xs:token">
<xs:annotation>
<xs:documentation>The pattern which defines the URL path. The content will depend on the type set in the
containing http element, so will default to ant path syntax.
<xs:documentation>The request URL pattern which will be mapped to the FilterChain.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="request-matcher-ref" type="xs:token">
<xs:annotation>
<xs:documentation>Allows a RequestMatcher instance to be used, as an alternative to pattern-matching.
</xs:documentation>
</xs:annotation>
</xs:attribute>