public abstract class Message extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Message.AbstractBuilder<R extends Message,B extends Message.AbstractBuilder<R,B>> |
| Modifier and Type | Method and Description |
|---|---|
MessageBody |
body()
The content body of this message.
|
MediaType |
contentType()
The media type of the body.
|
MessageHeaders |
headers()
The named header fields of this message.
|
byte[] |
serializeHeader()
Serializes the message header.
|
MessageVersion |
version()
The version of the network protocol or file format containing this message.
|
public MessageHeaders headers()
public MessageBody body()
public MessageVersion version()
public MediaType contentType()
Returns "application/octet-stream" if the Content-Type header is missing.
public byte[] serializeHeader()
Copyright © 2022. All rights reserved.