Module bus.http

Class Stomp.Header

java.lang.Object
org.miaixz.bus.http.Stomp.Header
Enclosing class:
Stomp

public static class Stomp.Header extends Object
Represents a STOMP header.
  • Field Details

  • Constructor Details

    • Header

      public Header(String key, String value)
      Constructs a new header.
      Parameters:
      key - The header key.
      value - The header value.
  • Method Details

    • getKey

      public String getKey()
      Gets the header key.
      Returns:
      The header key.
    • getValue

      public String getValue()
      Gets the header value.
      Returns:
      The header value.
    • toString

      public String toString()
      Returns the string representation of the header.
      Overrides:
      toString in class Object
      Returns:
      a key-value string in the format "key:value".