public class SaslHeader extends Header
Modifier and Type | Class and Description |
---|---|
static class |
SaslHeader.Type |
Constructor and Description |
---|
SaslHeader() |
SaslHeader(SaslHeader.Type type,
byte[] payload) |
Modifier and Type | Method and Description |
---|---|
Supplier<? extends Header> |
create()
Creates an instance of the class implementing this interface
|
short |
getMagicId()
Returns the magic-ID.
|
byte[] |
getPayload() |
SaslHeader.Type |
getType() |
SaslHeader |
payload(byte[] payload) |
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
serializedSize()
Returns the size (in bytes) of the marshalled object
|
void |
setPayload(byte[] payload) |
void |
setType(SaslHeader.Type type) |
byte[] |
token() |
String |
toString() |
SaslHeader |
type(SaslHeader.Type type) |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
public SaslHeader()
public SaslHeader(SaslHeader.Type type, byte[] payload)
public short getMagicId()
Header
getMagicId
in class Header
public byte[] getPayload()
public void setPayload(byte[] payload)
public SaslHeader.Type getType()
public void setType(SaslHeader.Type type)
public SaslHeader payload(byte[] payload)
public byte[] token()
public SaslHeader type(SaslHeader.Type type)
public Supplier<? extends Header> create()
Constructable
public void writeTo(DataOutput out) throws Exception
Streamable
Exception
public void readFrom(DataInput in) throws Exception
Streamable
Exception
public int serializedSize()
SizeStreamable
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.