public abstract class SourceQueryAuthEncoder<T extends SourceQueryAuthRequest> extends SourceQueryEncoder<T>
Abstract SourceQueryAuthEncoder class.
Modifier | Constructor and Description |
---|---|
protected |
SourceQueryAuthEncoder(Class<T> requestClass,
int requestHeader)
Constructor for SourceQueryAuthEncoder.
|
protected |
SourceQueryAuthEncoder(Class<T> requestClass,
int requestHeader,
int initialCapacity)
Constructor for SourceQueryAuthEncoder.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptQueryRequest(Class<? extends SourceQueryRequest> cls,
Envelope<SourceQueryRequest> envelope)
acceptQueryRequest.
|
protected void |
encodeChallenge(io.netty.channel.ChannelHandlerContext ctx,
T request,
io.netty.buffer.ByteBuf payload)
encodeChallenge.
|
protected void |
encodeQueryRequest(io.netty.channel.ChannelHandlerContext ctx,
Envelope<T> msg,
List<Object> out)
encodeQueryRequest.
|
acceptMessage, encodeMessage
acceptOutboundMessage, debug, encode, error, getContext, getRequest, handlerAdded, handlerRemoved, info, isDebugEnabled, log, trace, warn, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, isSharable
protected SourceQueryAuthEncoder(Class<T> requestClass, int requestHeader)
Constructor for SourceQueryAuthEncoder.
requestClass
- a Class
objectrequestHeader
- a intprotected void encodeQueryRequest(io.netty.channel.ChannelHandlerContext ctx, Envelope<T> msg, List<Object> out) throws Exception
encodeQueryRequest.
encodeQueryRequest
in class SourceQueryEncoder<T extends SourceQueryAuthRequest>
ctx
- a ChannelHandlerContext
objectmsg
- a Envelope
objectout
- a List
objectException
- if any.protected void encodeChallenge(io.netty.channel.ChannelHandlerContext ctx, T request, io.netty.buffer.ByteBuf payload)
encodeChallenge.
ctx
- a ChannelHandlerContext
objectrequest
- a T objectpayload
- a ByteBuf
objectprotected final boolean acceptQueryRequest(Class<? extends SourceQueryRequest> cls, Envelope<SourceQueryRequest> envelope)
acceptQueryRequest.
acceptQueryRequest
in class SourceQueryEncoder<T extends SourceQueryAuthRequest>
cls
- a Class
objectenvelope
- a Envelope
objectCopyright © 2016–2024. All rights reserved.