public class SaslHeader extends Header
限定符和类型 | 类和说明 |
---|---|
static class |
SaslHeader.Type |
构造器和说明 |
---|
SaslHeader() |
SaslHeader(SaslHeader.Type type,
byte[] payload) |
限定符和类型 | 方法和说明 |
---|---|
byte[] |
getPayload() |
SaslHeader.Type |
getType() |
SaslHeader |
payload(byte[] payload) |
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void |
setPayload(byte[] payload) |
void |
setType(SaslHeader.Type type) |
int |
size()
To be implemented by subclasses.
|
byte[] |
token() |
java.lang.String |
toString() |
SaslHeader |
type(SaslHeader.Type type) |
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
public SaslHeader()
public SaslHeader(SaslHeader.Type type, byte[] payload)
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 void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
java.lang.Exception
public int size()
Header