Class MessageHeaders

java.lang.Object
com.mirth.connect.userutil.MessageHeaders

public class MessageHeaders extends Object
  • Constructor Details

  • Method Details

    • get

      @Deprecated public String get(String key)
      Deprecated.
      This method is deprecated and will soon be removed. Please use getHeader(key) or getHeaderList(key) instead.
      Get the first header value for the given key.
      Parameters:
      key - The name of the header key.
      Returns:
      The associated value or null if no value exists.
    • getHeader

      public String getHeader(String key)
      Get the first header value for the given key.
      Parameters:
      key - The name of the header key.
      Returns:
      The associated value or null if no value exists.
    • getHeaderList

      public List<String> getHeaderList(String key)
      Get all header values for the given key.
      Parameters:
      key - The name of header key.
      Returns:
      A list of all header values for the given key or null if no values exist.
    • getKeys

      public Set<String> getKeys()
      Get all header keys.
      Returns:
      A set of all header keys.
    • contains

      public boolean contains(String key)
      Check if headers exists for a given key.
      Parameters:
      key - The name of the header key.
      Returns:
      true if headers exist for the given key, false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Object