org.apache.hc.core5.http

## Class Message<H extends MessageHeaders,B>

- java.lang.Object
- - org.apache.hc.core5.http.Message<H,B>

- Type Parameters:
    `H` - message head type.
    `B` - message body type.

      public final class Message<H extends MessageHeaders,B>
      extends Object

  Generic message consisting of a message head and a message body.
  Since:
    5.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Message(H head, B body)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `B` | `getBody()`
    `H` | `getHead()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Message

          public Message(H head,
                 B body)

  - ### Method Detail

    - #### getHead

          public H getHead()

    - #### getBody

          public B getBody()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.