org.jdiameter.client.impl.helpers
Class XMLConfiguration
java.lang.Object
org.jdiameter.client.impl.helpers.EmptyConfiguration
org.jdiameter.client.impl.helpers.XMLConfiguration
- All Implemented Interfaces:
- org.jdiameter.api.Configuration, AppConfiguration
public class XMLConfiguration
- extends EmptyConfiguration
This class provide loading and verification configuration from XML file
|
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 |
|
Method Summary |
protected org.jdiameter.api.Configuration |
addApplication(org.w3c.dom.Node node)
|
protected void |
addApplications(org.w3c.dom.Node node)
|
protected void |
addExtensions(org.w3c.dom.Node node)
|
protected void |
addIPAddress(org.w3c.dom.Node node)
|
protected void |
addLocalPeer(org.w3c.dom.Node node)
|
protected void |
addNetwork(org.w3c.dom.Node node)
|
protected void |
addParameters(org.w3c.dom.Node node)
|
protected org.jdiameter.api.Configuration |
addPeer(org.w3c.dom.Node node)
|
protected void |
addPeers(org.w3c.dom.Node node)
|
protected org.jdiameter.api.Configuration |
addRealm(org.w3c.dom.Node node)
|
protected void |
addRealms(org.w3c.dom.Node node)
|
protected void |
addSecurity(org.w3c.dom.Node node)
|
protected org.jdiameter.api.Configuration |
addSecurityData(org.w3c.dom.Node node)
|
protected void |
appendOtherParameter(org.w3c.dom.Node node)
|
protected java.lang.String |
getAttrValue(org.w3c.dom.Node node,
java.lang.String name)
|
protected java.lang.Integer |
getIntValue(org.w3c.dom.Node node)
|
protected java.lang.Long |
getLongValue(org.w3c.dom.Node node)
|
protected java.lang.String |
getValue(org.w3c.dom.Node node)
|
protected void |
processing(org.w3c.dom.Document document)
|
protected void |
validate(org.w3c.dom.Document document)
|
| 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, removeVelue, 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)
addLocalPeer
protected void addLocalPeer(org.w3c.dom.Node node)
addIPAddress
protected void addIPAddress(org.w3c.dom.Node node)
addApplications
protected void addApplications(org.w3c.dom.Node node)
addApplication
protected org.jdiameter.api.Configuration addApplication(org.w3c.dom.Node node)
addParameters
protected void addParameters(org.w3c.dom.Node node)
appendOtherParameter
protected void appendOtherParameter(org.w3c.dom.Node node)
addSecurity
protected void addSecurity(org.w3c.dom.Node node)
addSecurityData
protected org.jdiameter.api.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 org.jdiameter.api.Configuration addPeer(org.w3c.dom.Node node)
addRealm
protected org.jdiameter.api.Configuration addRealm(org.w3c.dom.Node node)
addExtensions
protected void addExtensions(org.w3c.dom.Node node)
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 © 2008. All Rights Reserved.