Improvements to the Jetty documentation.

Clarified that in Jetty XML's Array element the attribute "type" may also be a child element.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2021-01-11 19:04:09 +01:00
parent 4080dda561
commit 4081c6841a
2 changed files with 5 additions and 3 deletions

View File

@ -286,7 +286,7 @@ You can only specify the key value via the `name` attribute, so the key can only
[[og-xml-syntax-array]]
===== `<Array>` and `<Item>`
Element `<Array>` creates a new array, whose component type may be specified by the `type` attribute.
Element `<Array>` creates a new array, whose component type may be specified by the `type` attribute, or by a `Type` child element.
[source,xml]
----

View File

@ -100,7 +100,8 @@
<Call name="callStatic" class="org.eclipse.jetty.xml.TestConfiguration"/>
<Call name="call">
<Arg><Array type="java.lang.Object">
<Arg><Array>
<Type>java.lang.Object</Type>
<Item>Blah</Item>
<Item type="String">1.2.3.4:5678</Item>
<Item><New class="java.lang.Double"><Arg>1.2345</Arg></New></Item>
@ -109,7 +110,8 @@
</Call>
<Call name="call">
<Arg><Array type="int">
<Arg><Array>
<Type>int</Type>
<Item type="int">1</Item>
<Item type="int">2</Item>
<Item type="int">3</Item>