Package com.tonbeller.wcf.format

Examples of com.tonbeller.wcf.format.FormatException


    RequestContext context = RequestContext.instance();
    Locale locale = context.getLocale();
      if (analysisName == null || analysisName.trim().equals("")) {
        logger.error("Analysis name missing.");
        String msg = EngineMessageBundle.getMessage("error.analysis.name.missing", locale);
      throw new FormatException(msg);
    }
    // save the current analisys name if the recoveryAnalysisName variable
    this.recoveryAnalysisName = this.analysisName;
    this.analysisName = analysisName;
  }
View Full Code Here


    RequestContext context = RequestContext.instance();
    Locale locale = context.getLocale();
    if (templateName == null || templateName.trim().equals("")) {
        logger.error("Template name missing.");
        String msg = EngineMessageBundle.getMessage("error.template.name.missing", locale);
      throw new FormatException(msg);
    }
    if (templateName.indexOf("/") != -1 || templateName.indexOf("\\") != -1) {
      logger.error("Template name contains file path separators.");
        String msg = EngineMessageBundle.getMessage("error.template.name.contains.separators", locale);
      throw new FormatException(msg);
    }
    if (templateName.indexOf("<") != -1 || templateName.indexOf(">") != -1) {
      logger.error("Template name contains invalid characters.");
        String msg = EngineMessageBundle.getMessage("error.template.name.invalid.characters", locale);
      throw new FormatException(msg);
    }
    this.templateName = templateName;
  }
View Full Code Here

    RequestContext context = RequestContext.instance();
    Locale locale = context.getLocale();
    if (templateName == null || templateName.trim().equals("")) {
        logger.error("Template name missing.");
        String msg = EngineMessageBundle.getMessage("error.template.name.missing", locale);
      throw new FormatException(msg);
    }
    if (templateName.indexOf("/") != -1 || templateName.indexOf("\\") != -1) {
      logger.error("Template name contains file path separators.");
        String msg = EngineMessageBundle.getMessage("error.template.name.contains.separators", locale);
      throw new FormatException(msg);
    }
    if (templateName.indexOf("<") != -1 || templateName.indexOf(">") != -1) {
      logger.error("Template name contains invalid characters.");
        String msg = EngineMessageBundle.getMessage("error.template.name.invalid.characters", locale);
      throw new FormatException(msg);
    }
    this.templateName = templateName;
  }
View Full Code Here

      return;
    }
    if (analysisDescription.indexOf("/") != -1 || analysisDescription.indexOf("\\") != -1) {
      logger.error("Analysis name contains file path separators.");
        String msg = EngineMessageBundle.getMessage("error.analysis.description.contains.separators", locale);
      throw new FormatException(msg);
    }
    if (analysisDescription.indexOf("<") != -1 || analysisDescription.indexOf(">") != -1 || analysisDescription.indexOf("&lt;") != -1 || analysisDescription.indexOf("&gt;") != -1) {
      logger.error("Analysis name contains invalid characters.");
        String msg = EngineMessageBundle.getMessage("error.analysis.description.invalid.characters", locale);
      throw new FormatException(msg);
    }   
    //************** CLOSE NEW******************
    this.analysisDescription = analysisDescription;

  }
View Full Code Here

    RequestContext context = RequestContext.instance();
    Locale locale = context.getLocale();
    if (analysisName == null || analysisName.trim().equals("")) {
      logger.error("Analysis name missing.");
      String msg = EngineMessageBundle.getMessage("error.analysis.name.missing", locale);
      throw new FormatException(msg);
    }
    if (analysisName.indexOf("/") != -1 || analysisName.indexOf("\\") != -1) {
      logger.error("Analysis name contains file path separators.");
      String msg = EngineMessageBundle.getMessage("error.analysis.name.contains.separators", locale);
      throw new FormatException(msg);
    }
    if (analysisName.indexOf("<") != -1 || analysisName.indexOf(">") != -1) {
      logger.error("Analysis name contains invalid characters.");
      String msg = EngineMessageBundle.getMessage("error.analysis.name.invalid.characters", locale);
      throw new FormatException(msg);
    }
    // save the current analisys name if the recoveryAnalysisName variable
    this.recoveryAnalysisName = this.analysisName;
    this.analysisName = analysisName;
  }
View Full Code Here

TOP

Related Classes of com.tonbeller.wcf.format.FormatException

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.