Package jnode.module

Examples of jnode.module.JnodeModuleException


        .valueOf(properties.getProperty(CONFIG_SCANDELAY, "60"));

    if (multi == null || zipRegExp == null || segRegExp == null
        || correctDir == null || incorrectDir == null
        || nameFrom == null || bossRegExp == null) {
      throw new JnodeModuleException(
          "Invalid configuration: required fields are empty");
    }

    for (String dir : Arrays.asList(correctDir, incorrectDir)) {
      File d = new File(dir);
      if (!(d.canRead() && d.canWrite() && d.isDirectory())) {
        throw new JnodeModuleException(
            "Invalid configuration: directory " + dir
                + " is invalid");
      }
    }
    pZip = Pattern.compile(zipRegExp, Pattern.CASE_INSENSITIVE);
View Full Code Here


  public XMPPModule(String configFile) throws JnodeModuleException {
    super(configFile);
    client = new XMPPClient(properties);
    if (!client.testConnection()) {
      throw new JnodeModuleException("Invalid XMPP configuration");
    }
  }
View Full Code Here

TOP

Related Classes of jnode.module.JnodeModuleException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.