FileDocCategorySizeDatePackage
ForumConfig.javaAPI DocExample1467Sun Sep 02 14:59:04 BST 2001com.oreilly.forum

ForumConfig

public class ForumConfig extends Object
Define application-wide configuration information. The Servlet must call the setValues() method before any of the getter methods in this class can be used.

Fields Summary
public static final int
MAX_BOARD_NAME_LEN
public static final int
MAX_BOARD_DESC_LEN
public static final int
MAX_MSG_SUBJECT_LEN
public static final int
MAX_EMAIL_LEN
private static String
jdbcDriverClassName
private static String
databaseURL
private static String
adapterClassName
Constructors Summary
private ForumConfig()

    
Methods Summary
public static java.lang.StringgetAdapterClassName()

return
the data adapter implementation class name.

        return ForumConfig.adapterClassName;
    
public static java.lang.StringgetDatabaseURL()

return
the JDBC database URL.

        return ForumConfig.databaseURL;
    
public static java.lang.StringgetJDBCDriverClassName()

return
the JDBC driver class name.

        return ForumConfig.jdbcDriverClassName;
    
public static voidsetValues(java.lang.String jdbcDriverClassName, java.lang.String databaseURL, java.lang.String adapterClassName)


       
             
             
              
        ForumConfig.jdbcDriverClassName = jdbcDriverClassName;
        ForumConfig.databaseURL = databaseURL;
        ForumConfig.adapterClassName = adapterClassName;