Class BodyParserResults


  • final class BodyParserResults
    extends java.lang.Object
    Data extracted from a raw XML message by a BodyParser implementation. Currently, this is limited to the attributes of the wrapper element.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<BodyQName,​java.lang.String> attrs
      Map of qualified names to their values.
    • Constructor Summary

      Constructors 
      Constructor Description
      BodyParserResults()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void addBodyAttributeValue​(BodyQName name, java.lang.String value)
      Add an attribute definition to the results.
      (package private) java.util.Map<BodyQName,​java.lang.String> getAttributes()
      Returns the map of attributes added by the parser.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • attrs

        private final java.util.Map<BodyQName,​java.lang.String> attrs
        Map of qualified names to their values. This map is defined to match the requirement of the Body class to prevent excessive copying.
    • Constructor Detail

      • BodyParserResults

        BodyParserResults()
        Constructor.
    • Method Detail

      • addBodyAttributeValue

        void addBodyAttributeValue​(BodyQName name,
                                   java.lang.String value)
        Add an attribute definition to the results.
        Parameters:
        name - attribute's qualified name
        value - attribute value
      • getAttributes

        java.util.Map<BodyQName,​java.lang.String> getAttributes()
        Returns the map of attributes added by the parser.
        Returns:
        map of atributes. Note: This is the live instance, not a copy.