Class HttpAttributes

java.lang.Object
org.zalando.logbook.attributes.HttpAttributes
All Implemented Interfaces:
Map<String,Object>

@Immutable @API(status=EXPERIMENTAL) public final class HttpAttributes extends Object implements Map<String,Object>
  • Field Details

  • Constructor Details

    • HttpAttributes

      public HttpAttributes()
    • HttpAttributes

      public HttpAttributes(Map<String,Object> map)
  • Method Details

    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Map<String,Object>
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map<String,Object>
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static HttpAttributes of(String key, Object value)
      Returns an immutable HttpAttributes, mapping only the specified key to the specified value.
      Parameters:
      key - the sole key to be stored in the returned HttpAttributes.
      value - the value to which the returned HttpAttributes maps key.
      Returns:
      an immutable HttpAttributes containing only the specified key-value mapping.