org.jdiameter.server.impl.helpers
Class XMLConfiguration
java.lang.Object
org.jdiameter.client.impl.helpers.EmptyConfiguration
org.jdiameter.server.impl.helpers.EmptyConfiguration
org.jdiameter.server.impl.helpers.XMLConfiguration
- All Implemented Interfaces:
- Configuration, MutableConfiguration, AppConfiguration
public class XMLConfiguration
- extends EmptyConfiguration
This class provide loading and verification configuration for server from XML file
- Author:
- erick.svenson@yahoo.com, Alexandre Mendonca , Bartosz Baranowski
|
Constructor Summary |
|
XMLConfiguration(java.io.InputStream in)
Create instance of class and load file from defined input stream |
|
XMLConfiguration(java.io.InputStream in,
java.util.Hashtable<java.lang.String,java.lang.Object> attributes,
java.util.Hashtable<java.lang.String,java.lang.Boolean> features)
Create instance of class and load file from defined input stream |
protected |
XMLConfiguration(java.lang.Object in,
java.util.Hashtable<java.lang.String,java.lang.Object> attributes,
java.util.Hashtable<java.lang.String,java.lang.Boolean> features,
boolean nop)
|
|
XMLConfiguration(java.lang.String filename)
Create instance of class and load file from defined file name |
|
XMLConfiguration(java.lang.String filename,
java.util.Hashtable<java.lang.String,java.lang.Object> attributes,
java.util.Hashtable<java.lang.String,java.lang.Boolean> features)
Create instance of class and load file from defined input stream |
| Methods inherited from class org.jdiameter.server.impl.helpers.EmptyConfiguration |
addChangeListener, removeChangeListener, removeValue, setBooleanValue, setByteArrayValue, setByteValue, setChildren, setDoubleValue, setIntValue, setLongValue, setStringValue |
| Methods inherited from class org.jdiameter.client.impl.helpers.EmptyConfiguration |
add, add, add, getBooleanValue, getByteArrayValue, getByteValue, getChildren, getDoubleValue, getInstance, getIntValue, getLongValue, getStringValue, getValue, isAttributeExist, putValue, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XMLConfiguration
public XMLConfiguration(java.io.InputStream in)
throws java.lang.Exception
- Create instance of class and load file from defined input stream
- Parameters:
in - input stream
- Throws:
java.lang.Exception
XMLConfiguration
public XMLConfiguration(java.io.InputStream in,
java.util.Hashtable<java.lang.String,java.lang.Object> attributes,
java.util.Hashtable<java.lang.String,java.lang.Boolean> features)
throws java.lang.Exception
- Create instance of class and load file from defined input stream
- Parameters:
in - input streamattributes - attributes for DocumentBuilderFactoryfeatures - features for DocumentBuilderFactory
- Throws:
java.lang.Exception
XMLConfiguration
public XMLConfiguration(java.lang.String filename)
throws java.lang.Exception
- Create instance of class and load file from defined file name
- Parameters:
filename - configuration file name
- Throws:
java.lang.Exception
XMLConfiguration
public XMLConfiguration(java.lang.String filename,
java.util.Hashtable<java.lang.String,java.lang.Object> attributes,
java.util.Hashtable<java.lang.String,java.lang.Boolean> features)
throws java.lang.Exception
- Create instance of class and load file from defined input stream
- Parameters:
filename - configuration file nameattributes - attributes for DocumentBuilderFactoryfeatures - features for DocumentBuilderFactory
- Throws:
java.lang.Exception
XMLConfiguration
protected XMLConfiguration(java.lang.Object in,
java.util.Hashtable<java.lang.String,java.lang.Object> attributes,
java.util.Hashtable<java.lang.String,java.lang.Boolean> features,
boolean nop)
throws java.lang.Exception
- Throws:
java.lang.Exception
validate
protected void validate(org.w3c.dom.Document document)
throws java.lang.Exception
- Throws:
java.lang.Exception
processing
protected void processing(org.w3c.dom.Document document)
addApplications
protected void addApplications(org.w3c.dom.Node node)
addApplicationID
protected Configuration addApplicationID(org.w3c.dom.NodeList node)
addApplicationID
protected Configuration addApplicationID(org.w3c.dom.Node node)
addParameters
protected void addParameters(org.w3c.dom.Node node)
addThreadPool
protected void addThreadPool(org.w3c.dom.Node item)
addConcurrent
protected void addConcurrent(Parameters name,
org.w3c.dom.Node node)
addConcurrentEntity
protected void addConcurrentEntity(java.util.List<Configuration> items,
org.w3c.dom.Node node)
addStatisticLogger
protected void addStatisticLogger(Parameters name,
org.w3c.dom.Node node)
addDictionary
protected void addDictionary(Parameters name,
org.w3c.dom.Node node)
addRequestTable
protected void addRequestTable(Parameters name,
org.w3c.dom.Node node)
addSecurity
protected void addSecurity(org.w3c.dom.Node node)
addSecurityData
protected Configuration addSecurityData(org.w3c.dom.Node node)
addNetwork
protected void addNetwork(org.w3c.dom.Node node)
addPeers
protected void addPeers(org.w3c.dom.Node node)
addRealms
protected void addRealms(org.w3c.dom.Node node)
addPeer
protected Configuration addPeer(org.w3c.dom.Node node)
addLocalPeer
protected void addLocalPeer(org.w3c.dom.Node node)
addIPAddress
protected void addIPAddress(org.w3c.dom.Node node)
addIPAddressItem
protected Configuration addIPAddressItem(org.w3c.dom.Node node)
addRealm
protected Configuration addRealm(org.w3c.dom.Node node)
addAgent
protected Configuration addAgent(org.w3c.dom.Node node)
getProperties
protected java.util.List<Configuration> getProperties(org.w3c.dom.Node node)
appendOtherParameter
protected void appendOtherParameter(org.w3c.dom.Node node)
addExtensions
protected void addExtensions(org.w3c.dom.Node node)
addInternalExtension
protected void addInternalExtension(Ordinal ep,
java.lang.String value)
getLongValue
protected java.lang.Long getLongValue(org.w3c.dom.Node node)
getIntValue
protected java.lang.Integer getIntValue(org.w3c.dom.Node node)
getValue
protected java.lang.String getValue(org.w3c.dom.Node node)
getAttrValue
protected java.lang.String getAttrValue(org.w3c.dom.Node node,
java.lang.String name)
Copyright © 2014. All Rights Reserved.