DBAbstract API Documentation

ro.raducora.utils.props.xml
Class ServerXMLProperties

java.lang.Object
  |
  +--ro.raducora.utils.props.xml.ServerXMLProperties
All Implemented Interfaces:
Props, ServerProps

public class ServerXMLProperties
extends java.lang.Object
implements ServerProps

Author:
Radu Coravu
Created on May 8, 2004
Server XML Properties Reader

Constructor Summary
ServerXMLProperties()
          Default Constructor takes as default properties filename path ".
ServerXMLProperties(java.lang.String filename)
           
 
Method Summary
 boolean allowDirectConnection()
          Returns true if direct connection to client through redirection is possible.
 int getMaxNumberOfAllowedClients()
          Gets the max number of allowed clients
 void reload()
          Reloads the properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerXMLProperties

public ServerXMLProperties()
                    throws javax.xml.parsers.ParserConfigurationException,
                           org.xml.sax.SAXException,
                           java.io.IOException
Default Constructor takes as default properties filename path "./conf/Server.xml"

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

ServerXMLProperties

public ServerXMLProperties(java.lang.String filename)
                    throws javax.xml.parsers.ParserConfigurationException,
                           org.xml.sax.SAXException,
                           java.io.IOException
Parameters:
filename - the properties filename
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
Method Detail

allowDirectConnection

public boolean allowDirectConnection()
Returns true if direct connection to client through redirection is possible.

Specified by:
allowDirectConnection in interface ServerProps
Returns:
true if direct connection is allowed

reload

public void reload()
            throws javax.xml.parsers.ParserConfigurationException,
                   org.xml.sax.SAXException,
                   java.io.IOException
Reloads the properties

Specified by:
reload in interface Props
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

getMaxNumberOfAllowedClients

public int getMaxNumberOfAllowedClients()
Gets the max number of allowed clients

Specified by:
getMaxNumberOfAllowedClients in interface ServerProps
Returns:
the max number of allowed connections

DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.