net.jradius.server.config
Class HandlerConfigurationItem

java.lang.Object
  extended by net.jradius.server.config.ConfigurationItem
      extended by net.jradius.server.config.HandlerConfigurationItem
Direct Known Subclasses:
PacketHandlerConfigurationItem

public class HandlerConfigurationItem
extends ConfigurationItem

Configuration Item for Event Handlers.

Author:
Gert Jan Verhoog, David Bird

Field Summary
static String CATALOG_KEY
           
static String HANDLER_KEY
           
static String SENDER_KEY
           
static String TYPE_KEY
           
static String XML_KEY
           
static String XML_LIST_KEY
           
 
Fields inherited from class net.jradius.server.config.ConfigurationItem
className, description, hcfg, name, properties, root
 
Constructor Summary
HandlerConfigurationItem(org.apache.commons.configuration.HierarchicalConfiguration.Node node, XMLConfiguration config)
           
HandlerConfigurationItem(String name)
           
HandlerConfigurationItem(String name, String className)
           
 
Method Summary
 String getCatalogName()
           
 String getHandlerName()
           
 List<String> getHandleTypes()
           
 List getPossibleTypes()
           
 List<String> getSenders()
           
 boolean handlesSender(Object sender)
           
 boolean handlesType(String type)
           
 void setCatalogName(String catalogName)
           
 void setHandlerName(String handlerName)
           
 void setHandleTypes(List<String> handleTypes)
           
 void setHandleTypes(String handleTypes)
           
 void setPossibleTypes(List<String> possibleTypes)
           
 void setSenders(List<String> senders)
           
 void setSenders(String sender)
           
 
Methods inherited from class net.jradius.server.config.ConfigurationItem
getClassName, getDescription, getName, getProperties, getPropertiesFromConfig, getRoot, getXMLConfig, setClassName, setDescription, setName, setProperties, setProperties, toString, xmlKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_LIST_KEY

public static final String XML_LIST_KEY
See Also:
Constant Field Values

XML_KEY

public static final String XML_KEY
See Also:
Constant Field Values

TYPE_KEY

public static final String TYPE_KEY
See Also:
Constant Field Values

SENDER_KEY

public static final String SENDER_KEY
See Also:
Constant Field Values

HANDLER_KEY

public static final String HANDLER_KEY
See Also:
Constant Field Values

CATALOG_KEY

public static final String CATALOG_KEY
See Also:
Constant Field Values
Constructor Detail

HandlerConfigurationItem

public HandlerConfigurationItem(String name)

HandlerConfigurationItem

public HandlerConfigurationItem(String name,
                                String className)

HandlerConfigurationItem

public HandlerConfigurationItem(org.apache.commons.configuration.HierarchicalConfiguration.Node node,
                                XMLConfiguration config)
Method Detail

getHandleTypes

public List<String> getHandleTypes()
Returns:
Returns the handled types

setHandleTypes

public void setHandleTypes(List<String> handleTypes)
Parameters:
handleTypes - The handled types to set.

setHandleTypes

public void setHandleTypes(String handleTypes)
Parameters:
handleTypes - The handled types to set.

setSenders

public void setSenders(String sender)
Parameters:
sender - The requester name(s) allowed for this handler.

getSenders

public List<String> getSenders()
Returns:
Returns the list of requesters serviced by this handler

getPossibleTypes

public List getPossibleTypes()
Returns:
Returns the possible types to handle.

setPossibleTypes

public void setPossibleTypes(List<String> possibleTypes)
Parameters:
possibleTypes - The possible types to set.

handlesType

public boolean handlesType(String type)

handlesSender

public boolean handlesSender(Object sender)

getCatalogName

public String getCatalogName()
Returns:
Returns the catalogName.

setCatalogName

public void setCatalogName(String catalogName)
Parameters:
catalogName - The catalogName to set.

getHandlerName

public String getHandlerName()
Returns:
Returns the handlerName.

setHandlerName

public void setHandlerName(String handlerName)
Parameters:
handlerName - The handlerName to set.

setSenders

public void setSenders(List<String> senders)
Parameters:
senders - The senders to set.


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