S - Server connection typeT - RPC typepublic class ServerAuthenticationHandler<S extends ServerConnection<S>,T extends com.google.protobuf.Internal.EnumLite> extends Object implements RequestHandler<S>
| Constructor and Description |
|---|
ServerAuthenticationHandler(RequestHandler<S> requestHandler,
int saslRequestTypeValue,
T saslResponseType) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(S connection,
int rpcType,
io.netty.buffer.ByteBuf pBody,
io.netty.buffer.ByteBuf dBody,
ResponseSender sender)
Handle request of given type (rpcType) with message (pBody) and optional data (dBody)
on the connection, and return the appropriate response.
|
public ServerAuthenticationHandler(RequestHandler<S> requestHandler, int saslRequestTypeValue, T saslResponseType)
public void handle(S connection, int rpcType, io.netty.buffer.ByteBuf pBody, io.netty.buffer.ByteBuf dBody, ResponseSender sender) throws RpcException
RequestHandlersend the response
+ throw UserRpcException, in which case a response will be sent using send
+ throw an Exception, in which case, the connection will be droppedhandle in interface RequestHandler<S extends ServerConnection<S>>connection - remote connectionrpcType - rpc typepBody - messagedBody - data, maybe nullsender - used to send the responseRpcExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.