public class AuthHeader extends Header
Constructor and Description |
---|
AuthHeader() |
AuthHeader(AuthToken token) |
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.
|
AuthToken |
getToken() |
protected static AuthToken |
readAuthToken(DataInput in) |
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 |
setToken(AuthToken token) |
protected static int |
sizeOf(AuthToken tok) |
AuthToken |
token() |
AuthHeader |
token(AuthToken token) |
String |
toString() |
protected static void |
writeAuthToken(DataOutput out,
AuthToken tok) |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected AuthToken token
public AuthHeader()
public AuthHeader(AuthToken token)
public Supplier<? extends Header> create()
Constructable
public void setToken(AuthToken token)
public AuthToken getToken()
public AuthHeader token(AuthToken token)
public AuthToken token()
public short getMagicId()
Header
getMagicId
in class Header
public void writeTo(DataOutput out) throws Exception
Streamable
Exception
public void readFrom(DataInput in) throws Exception
Streamable
Exception
public int serializedSize()
SizeStreamable
protected static void writeAuthToken(DataOutput out, AuthToken tok) throws Exception
Exception
protected static AuthToken readAuthToken(DataInput in) throws Exception
Exception
protected static int sizeOf(AuthToken tok)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.