Interface RequestHandler<T extends RadiusPacket,S extends SecretProvider>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.netty.util.concurrent.Promise<RadiusPacket> handlePacket​(io.netty.channel.Channel channel, T request, java.net.InetSocketAddress remoteAddress, S secretProvider)
      Handles the received Radius packet and constructs a response.
    • Method Detail

      • handlePacket

        io.netty.util.concurrent.Promise<RadiusPacket> handlePacket​(io.netty.channel.Channel channel,
                                                                    T request,
                                                                    java.net.InetSocketAddress remoteAddress,
                                                                    S secretProvider)
        Handles the received Radius packet and constructs a response. Filters/Deduplicators can also implement this and wrap around underlying handlers.
        Parameters:
        channel - socket which received packet
        request - incoming packet, can be RadiusPacket or subclass
        remoteAddress - remote address the packet was sent by
        secretProvider - shared secret associated with remoteAddress
        Returns:
        Promise of RadiusPacket or null for no response. Uses Promise instead Future, so requests to be timed out or cancelled by the caller