Package org.tinyradius.server.handler
Class AcctHandler
- java.lang.Object
-
- org.tinyradius.server.handler.AcctHandler
-
- All Implemented Interfaces:
RequestHandler<AccountingRequest,SecretProvider>
public class AcctHandler extends java.lang.Object implements RequestHandler<AccountingRequest,SecretProvider>
A reference implementation of AccountingRequest handler that responds to all Accounting-Request with standard Accounting-Response.
-
-
Constructor Summary
Constructors Constructor Description AcctHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.util.concurrent.Promise<RadiusPacket>
handlePacket(io.netty.channel.Channel channel, AccountingRequest request, java.net.InetSocketAddress remoteAddress, SecretProvider secretProvider)
Handles the received Radius packet and constructs a response.
-
-
-
Method Detail
-
handlePacket
public io.netty.util.concurrent.Promise<RadiusPacket> handlePacket(io.netty.channel.Channel channel, AccountingRequest request, java.net.InetSocketAddress remoteAddress, SecretProvider secretProvider)
Description copied from interface:RequestHandler
Handles the received Radius packet and constructs a response. Filters/Deduplicators can also implement this and wrap around underlying handlers.- Specified by:
handlePacket
in interfaceRequestHandler<AccountingRequest,SecretProvider>
- Parameters:
channel
- socket which received packetrequest
- incoming packet, can be RadiusPacket or subclassremoteAddress
- remote address the packet was sent bysecretProvider
- 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
-
-