net.jradius.handler.dhcp
Class DHCPPoolHandler

java.lang.Object
  extended by net.jradius.handler.EventHandlerBase
      extended by net.jradius.handler.EventHandlerChain
          extended by net.jradius.handler.PacketHandlerChain
              extended by net.jradius.handler.dhcp.DHCPPoolHandler
All Implemented Interfaces:
net.jradius.handler.chain.JRCommand, net.jradius.handler.EventHandler, net.jradius.handler.PacketHandler, org.apache.commons.chain.Command, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean

public class DHCPPoolHandler
extends net.jradius.handler.PacketHandlerChain
implements org.springframework.beans.factory.InitializingBean

Simple DHCP IP Pool Handler for FreeRADIUS.

Author:
David Bird

Field Summary
 
Fields inherited from class net.jradius.handler.EventHandlerBase
config
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
DHCPPoolHandler()
           
 
Method Summary
 void afterPropertiesSet()
           
 boolean handle(net.jradius.server.JRadiusRequest request)
           
 boolean handle(net.jradius.server.JRadiusRequest request, byte[] hwAddress, AddressPool pool)
           
 void setCache(net.sf.ehcache.Cache cache)
           
 void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
           
 
Methods inherited from class net.jradius.handler.PacketHandlerChain
handle
 
Methods inherited from class net.jradius.handler.EventHandlerChain
execute, execute, getCatalog, getCatalogName, getOnFalse, getOnTrue, setBeanFactory, setCatalogName, setConfig, setOnFalse, setOnTrue
 
Methods inherited from class net.jradius.handler.EventHandlerBase
doesHandle, execute, getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.jradius.handler.EventHandler
setName
 
Methods inherited from interface net.jradius.handler.chain.JRCommand
doesHandle, getName, setConfig
 
Methods inherited from interface org.apache.commons.chain.Command
execute
 

Constructor Detail

DHCPPoolHandler

public DHCPPoolHandler()
Method Detail

handle

public boolean handle(net.jradius.server.JRadiusRequest request)
               throws Exception
Specified by:
handle in interface net.jradius.handler.PacketHandler
Overrides:
handle in class net.jradius.handler.PacketHandlerChain
Throws:
Exception

handle

public boolean handle(net.jradius.server.JRadiusRequest request,
                      byte[] hwAddress,
                      AddressPool pool)
               throws Exception
Throws:
Exception

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

setCacheManager

public void setCacheManager(net.sf.ehcache.CacheManager cacheManager)

setCache

public void setCache(net.sf.ehcache.Cache cache)


Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.