Class MockMessage

java.lang.Object
org.opensaml.profile.action.impl.MockMessage

public class MockMessage extends Object
Mock message class impl.
  • Field Details

  • Constructor Details

    • MockMessage

      public MockMessage()
      Constructor.
  • Method Details

    • getProperties

      public Map<String,String> getProperties()
      Get the mock message properties.
      Returns:
      properties
    • getEncoded

      public String getEncoded()
      Get the encoded form of the message properties, which will be in the form "key1=value1&key2=value2&...&keyN=valueN", sorted ascending by key.
      Returns:
      the encoded form of the message
    • sort

      private List<String> sort(Set<String> messageKeys)
      Convert a set into a sorted list.
      Parameters:
      messageKeys - set of keys
      Returns:
      a sorted list