public class Message extends Object
Constructor and Description |
---|
Message(Map<String,HeaderValue> headers,
byte[] payload) |
Modifier and Type | Method and Description |
---|---|
static Message |
decode(ByteBuffer buf) |
void |
encode(OutputStream os) |
boolean |
equals(Object o) |
Map<String,HeaderValue> |
getHeaders() |
byte[] |
getPayload() |
int |
hashCode() |
ByteBuffer |
toByteBuffer() |
String |
toString() |
public Message(Map<String,HeaderValue> headers, byte[] payload)
public Map<String,HeaderValue> getHeaders()
public byte[] getPayload()
public static Message decode(ByteBuffer buf)
public ByteBuffer toByteBuffer()
public void encode(OutputStream os)
Copyright © 2022. All rights reserved.