public class Decoder extends Object
| Modifier and Type | Field and Description |
|---|---|
static io.netty.util.AttributeKey<InetSocketAddress> |
INET_ADDRESS_KEY |
static io.netty.util.AttributeKey<PeerAddress> |
PEER_ADDRESS_KEY |
| Constructor and Description |
|---|
Decoder(SignatureFactory signatureFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buf,
InetSocketAddress recipient,
InetSocketAddress sender) |
boolean |
decodeHeader(io.netty.buffer.ByteBuf buf,
InetSocketAddress recipient,
InetSocketAddress sender) |
boolean |
decodePayload(io.netty.buffer.ByteBuf buf) |
void |
decodeSignature(io.netty.buffer.ByteBuf buf,
int readerBefore,
boolean donePayload) |
Message.Content |
lastContent() |
Message |
message() |
Message |
prepareFinish() |
public static final io.netty.util.AttributeKey<InetSocketAddress> INET_ADDRESS_KEY
public static final io.netty.util.AttributeKey<PeerAddress> PEER_ADDRESS_KEY
public Decoder(SignatureFactory signatureFactory)
public boolean decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buf,
InetSocketAddress recipient,
InetSocketAddress sender)
public void decodeSignature(io.netty.buffer.ByteBuf buf,
int readerBefore,
boolean donePayload)
throws InvalidKeyException,
SignatureException,
IOException
public boolean decodeHeader(io.netty.buffer.ByteBuf buf,
InetSocketAddress recipient,
InetSocketAddress sender)
public boolean decodePayload(io.netty.buffer.ByteBuf buf)
throws NoSuchAlgorithmException,
InvalidKeySpecException,
InvalidKeyException
public Message prepareFinish()
public Message message()
public Message.Content lastContent()
Copyright © 2014. All rights reserved.