net.sf.jradius.handler
Class StandardCheckingHandler
java.lang.Object
net.sf.jradius.handler.EventHandlerBase
net.sf.jradius.handler.PacketHandlerBase
net.sf.jradius.handler.StandardCheckingHandler
- All Implemented Interfaces:
- JRCommand, EventHandler, org.apache.commons.chain.Command
public class StandardCheckingHandler
- extends PacketHandlerBase
A handler to verify a request complies with a standard (requires a
standardName configuration)
- Author:
- David Bird
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardCheckingHandler
public StandardCheckingHandler()
handle
public boolean handle(JRadiusRequest request)
throws java.lang.Exception
- This handler checks the request against the configured standard. If
the StandardViolationException is thrown, a problem report is genereate
and sent to the RadiusLog.
- Specified by:
handle
in class PacketHandlerBase
- Parameters:
request
- The JRadiusRequest being processed
- Returns:
- Returns true of the command is handled (i.e. break the chain)
- Throws:
java.lang.Exception
- See Also:
PacketHandler.handle(net.sf.jradius.server.JRadiusRequest)
setStandardName
public void setStandardName(java.lang.String name)
- This bean method is to support the chain configuration "standardName"
- Parameters:
name
- The Class Name of the standard to check against.
getStandard
public RadiusStandard getStandard()
- Returns:
- Returns the standard.
setStandard
public void setStandard(RadiusStandard standard)
- Parameters:
standard
- The standard to set.
Copyright © 2006 The JRadius Project, All Rights Reserved.