Class BodyParserResults

java.lang.Object
org.igniterealtime.jbosh.BodyParserResults

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

    • attrs

      private final Map<BodyQName,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 Details

    • BodyParserResults

      BodyParserResults()
      Constructor.
  • Method Details

    • addBodyAttributeValue

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

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