INT-2412
removed priority enumeration from the 2.0 and 2.1 schema fixed documentation, added tests
This commit is contained in:
committed by
Mark Fisher
parent
8789d850b3
commit
76f6c0877e
@@ -324,6 +324,10 @@ public final class MessageBuilder<T> {
|
||||
Assert.isTrue(Integer.class.isAssignableFrom(headerValue.getClass()), "The '" + headerName
|
||||
+ "' header value must be an Integer.");
|
||||
}
|
||||
else if (MessageHeaders.PRIORITY.equals(headerName)) {
|
||||
Assert.isTrue(Integer.class.isAssignableFrom(headerValue.getClass()), "The '" + headerName
|
||||
+ "' header value must be an Integer.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1413,14 +1413,16 @@ endpoint itself is a Polling Consumer for a channel with a queue.
|
||||
<xsd:element name="priority">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Shortcut to specify value for 'priority' header when using PriotityChannel
|
||||
Shortcut to specify value for 'priority' header when using PriorityChannel
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="value">
|
||||
<xsd:simpleType>
|
||||
<xsd:union memberTypes="priorityEnumeration xsd:string" />
|
||||
</xsd:simpleType>
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Integer value identifying the value of the 'priority' header.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="overwrite">
|
||||
<xsd:annotation>
|
||||
@@ -1515,16 +1517,6 @@ endpoint itself is a Polling Consumer for a channel with a queue.
|
||||
</xsd:attribute>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:simpleType name="priorityEnumeration">
|
||||
<xsd:restriction base="xsd:token">
|
||||
<xsd:enumeration value="HIGHEST" />
|
||||
<xsd:enumeration value="HIGH" />
|
||||
<xsd:enumeration value="NORMAL" />
|
||||
<xsd:enumeration value="LOW" />
|
||||
<xsd:enumeration value="LOWEST" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
<xsd:complexType name="userDefinedHeaderType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
|
||||
@@ -1638,14 +1638,16 @@ endpoint itself is a Polling Consumer for a channel with a queue.
|
||||
<xsd:element name="priority">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Shortcut to specify value for 'priority' header when using PriotityChannel
|
||||
Shortcut to specify value for 'priority' header when using PriorityChannel
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="value">
|
||||
<xsd:simpleType>
|
||||
<xsd:union memberTypes="priorityEnumeration xsd:string" />
|
||||
</xsd:simpleType>
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Integer value identifying the value of the 'priority' header.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="overwrite">
|
||||
<xsd:annotation>
|
||||
@@ -1654,7 +1656,7 @@ endpoint itself is a Polling Consumer for a channel with a queue.
|
||||
an existing header
|
||||
value
|
||||
for the same name.
|
||||
</xsd:documentation>
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
<xsd:simpleType>
|
||||
<xsd:union memberTypes="xsd:boolean xsd:string" />
|
||||
@@ -1740,16 +1742,6 @@ endpoint itself is a Polling Consumer for a channel with a queue.
|
||||
</xsd:attribute>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:simpleType name="priorityEnumeration">
|
||||
<xsd:restriction base="xsd:token">
|
||||
<xsd:enumeration value="HIGHEST" />
|
||||
<xsd:enumeration value="HIGH" />
|
||||
<xsd:enumeration value="NORMAL" />
|
||||
<xsd:enumeration value="LOW" />
|
||||
<xsd:enumeration value="LOWEST" />
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
<xsd:complexType name="userDefinedHeaderType">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
|
||||
Reference in New Issue
Block a user