net.jradius.handler
Class StandardCheckingHandler
java.lang.Object
net.jradius.handler.EventHandlerBase
net.jradius.handler.PacketHandlerBase
net.jradius.handler.StandardCheckingHandler
- All Implemented Interfaces:
- net.jradius.handler.chain.JRCommand, net.jradius.handler.EventHandler, org.apache.commons.chain.Command
public class StandardCheckingHandler
- extends net.jradius.handler.PacketHandlerBase
A handler to verify a request complies with a standard (requires a
standardName configuration)
- Author:
- David Bird
Fields inherited from class net.jradius.handler.EventHandlerBase |
config |
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Method Summary |
net.jradius.standard.RadiusStandard |
getStandard()
|
boolean |
handle(net.jradius.server.JRadiusRequest request)
This handler checks the request against the configured standard. |
void |
setStandard(net.jradius.standard.RadiusStandard standard)
|
void |
setStandardName(java.lang.String name)
This bean method is to support the chain configuration "standardName" |
Methods inherited from class net.jradius.handler.PacketHandlerBase |
handle |
Methods inherited from class net.jradius.handler.EventHandlerBase |
doesHandle, execute, getName, setConfig, setName |
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(net.jradius.server.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 net.jradius.handler.PacketHandlerBase
- Throws:
java.lang.Exception
- See Also:
PacketHandler.handle(net.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 net.jradius.standard.RadiusStandard getStandard()
- Returns:
- Returns the standard.
setStandard
public void setStandard(net.jradius.standard.RadiusStandard standard)
- Parameters:
standard
- The standard to set.
Copyright © 2008 JRadius Project, All Rights Reserved.