H
- message head type.B
- message body type.public final class Message<H extends MessageHeaders,B> extends Object
Constructor and Description |
---|
Message(H head)
Constructs a new instance.
|
Message(H head,
B body)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
B |
getBody()
Gets the message body.
|
H |
getHead()
Gets the message head.
|
String |
toString() |
public Message(H head)
head
- The message head.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.