FileDocCategorySizeDatePackage
ConfigBean.javaAPI DocExample2091Mon Mar 01 16:32:06 GMT 2004com.develop.ss.config

ConfigBean

public class ConfigBean extends Object

Fields Summary
Properties
props
int
maxlinks
String[]
allowedExtensions
String
skippedLinksFile
IndexPathBean
indexPathBean
String
avoidLinks
Constructors Summary
public ConfigBean()


     
    
        try
        {
            props.load(getClass().getResourceAsStream("/com.develop.ss.properties"));
            maxlinks = Integer.parseInt(props.getProperty("maxlinks"));
            allowedExtensions= props.getProperty("allowed.extensions").split(",");
            skippedLinksFile = props.getProperty("skipped.links.file");
            avoidLinks = props.getProperty("AvoidLinks");
        }
        catch(Exception ex)
        {

        }
    
Methods Summary
public voidflipIndexPath()

        try
        {
            indexPathBean.flipIndexPath();
        }
        catch(Exception ex)
        {
        }
    
public java.lang.String[]getAllowedExtensions()

        return allowedExtensions;
    
public java.lang.StringgetAvoidLinks()

        return avoidLinks;
    
public java.lang.StringgetCurIndexPath()

        String indexPath = "";
        try
        {
            indexPath = indexPathBean.getIndexPath();
        }
        catch(Exception ex)
        {
        }
        return indexPath;
    
public intgetMaxLinks()

        return maxlinks;
    
public java.lang.StringgetNextIndexPath()

        String indexPath = "";
        try
        {
            indexPath = indexPathBean.getFlippedIndexPath();
        }
        catch(Exception ex)
        {
        }
        return indexPath;
    
public java.lang.StringgetSkippedLinksFile()

        return skippedLinksFile;
    
public java.lang.String[]getStringArrProperty(java.lang.String propName, java.lang.String sep)

        return props.getProperty(propName).split(sep);
    
public java.lang.StringgetStringProperty(java.lang.String propName)

          return props.getProperty(propName);