org.sourcejammer.server
Class ServerConfig

java.lang.Object
  |
  +--org.sourcejammer.server.ServerConfig

public class ServerConfig
extends java.lang.Object

Title: $FileName: ServerConfig.java$

Version:
$VerNum: 16$
Author:
$AuthorName: Rob MacGrogan$

$Description: $
$KeyWordsOff: $

Nested Class Summary
static class ServerConfig.ConfXMLNodes
           
 
Field Summary
private static java.lang.String CONF_FILE
           
private  java.lang.String filesysDirectory
           
private static ServerConfig instance
           
private  boolean mbEnableAnonymous
           
private  boolean mbEnableWeb
           
private  int miBinaryRangeSize
           
private  int miComparisonChunkSize
           
private  int miMaxCacheSize
           
private  java.lang.String msAnonymousUserName
           
private  java.lang.String msDefaultArchiveRoot
           
private static java.lang.String msServerVersion
           
private  java.lang.String msWebInterfaceInfo
           
private  java.lang.String msWebInterfaceTitle
           
private  java.lang.String serverDirectory
           
 
Constructor Summary
private ServerConfig()
           
 
Method Summary
 java.lang.String getAnonymousUserName()
           
 int getBinaryRangeSize()
           
 int getComparisonChunckSize()
           
 java.lang.String getDefaultArchiveRoot()
           
 java.lang.String getFilesysDirectory()
          Returns the filesysDirectory.
static ServerConfig getInstance()
           
static ServerConfig getInstance(java.lang.String basePath)
           
 int getMaxCacheSize()
           
 java.lang.String getServerDirectory()
          Returns the serverDirectory.
static java.lang.String getServerVersion()
           
 java.lang.String getWebInterfaceInfo()
           
 java.lang.String getWebInterfaceTitle()
           
 boolean isEnableAnonymousAccess()
           
 boolean isEnableWebAccess()
           
private  void load(java.lang.String sBasePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONF_FILE

private static final java.lang.String CONF_FILE
See Also:
Constant Field Values

instance

private static ServerConfig instance

msServerVersion

private static java.lang.String msServerVersion

miMaxCacheSize

private int miMaxCacheSize

mbEnableAnonymous

private boolean mbEnableAnonymous

mbEnableWeb

private boolean mbEnableWeb

msAnonymousUserName

private java.lang.String msAnonymousUserName

msWebInterfaceTitle

private java.lang.String msWebInterfaceTitle

msWebInterfaceInfo

private java.lang.String msWebInterfaceInfo

serverDirectory

private java.lang.String serverDirectory

filesysDirectory

private java.lang.String filesysDirectory

miComparisonChunkSize

private int miComparisonChunkSize

miBinaryRangeSize

private int miBinaryRangeSize

msDefaultArchiveRoot

private java.lang.String msDefaultArchiveRoot
Constructor Detail

ServerConfig

private ServerConfig()
Method Detail

load

private void load(java.lang.String sBasePath)
           throws java.io.IOException,
                  org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException

getInstance

public static ServerConfig getInstance(java.lang.String basePath)

getInstance

public static ServerConfig getInstance()

getComparisonChunckSize

public int getComparisonChunckSize()

getBinaryRangeSize

public int getBinaryRangeSize()

getDefaultArchiveRoot

public java.lang.String getDefaultArchiveRoot()

getMaxCacheSize

public int getMaxCacheSize()

isEnableAnonymousAccess

public boolean isEnableAnonymousAccess()

isEnableWebAccess

public boolean isEnableWebAccess()

getAnonymousUserName

public java.lang.String getAnonymousUserName()

getServerVersion

public static java.lang.String getServerVersion()

getWebInterfaceTitle

public java.lang.String getWebInterfaceTitle()

getWebInterfaceInfo

public java.lang.String getWebInterfaceInfo()

getFilesysDirectory

public java.lang.String getFilesysDirectory()
Returns the filesysDirectory.

Returns:
String

getServerDirectory

public java.lang.String getServerDirectory()
Returns the serverDirectory.

Returns:
String


Copyright © 2003 Soucejammer project.