com.holonplatform.core.messaging

## Interface MessageHeaders<H>

- Type Parameters:
    `H` - Message headers value type
  All Known Subinterfaces:
    HttpHeaders, HttpMessage<P>, HttpRequest, HttpResponse<T>, Message<P,H>, ResponseEntity<T>

      public interface MessageHeaders<H>

  Generic message headers representation.
  Since:
    5.0.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default Optional<H>` | `getHeader(String name)` Get header value using given header `name`
    `Map<String,H>` | `getHeaders()` Get message headers.

- - ### Method Detail

    - #### getHeaders

          Map<String,H> getHeaders()

      Get message headers. This method should never return `null`.
      Returns:
        Message headers, or an empty map if message has no headers

    - #### getHeader

          default Optional<H> getHeader(String name)

      Get header value using given header `name`
      Parameters:
        `name` - Header name
      Returns:
        Optional Header value. Returns an empty Optional if header with given name is not present or has no value

Copyright © 2017 The Holon Platform. All rights reserved.