net.sf.jradius.handler
Class StandardCheckingHandler

java.lang.Object
  extended by net.sf.jradius.handler.EventHandlerBase
      extended by net.sf.jradius.handler.PacketHandlerBase
          extended by 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

Field Summary
 
Fields inherited from class net.sf.jradius.handler.EventHandlerBase
config
 
Constructor Summary
StandardCheckingHandler()
           
 
Method Summary
 RadiusStandard getStandard()
           
 boolean handle(JRadiusRequest request)
          This handler checks the request against the configured standard.
 void setStandard(RadiusStandard standard)
           
 void setStandardName(java.lang.String name)
          This bean method is to support the chain configuration "standardName"
 
Methods inherited from class net.sf.jradius.handler.PacketHandlerBase
handle
 
Methods inherited from class net.sf.jradius.handler.EventHandlerBase
doesHandle, execute, getName, setConfig, setName, splitUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardCheckingHandler

public StandardCheckingHandler()
Method Detail

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.