Package ratpack.file

Examples of ratpack.file.BaseDirRequiredException


  public FileSystemBindingHandler(LaunchConfig launchConfig, String path, Handler handler) {
    if (launchConfig.isHasBaseDir()) {
      this.path = path;
      this.handler = handler;
    } else {
      throw new BaseDirRequiredException("An application base directory is required to use this handler");
    }

    // TODO - validate the path isn't escaping up with ../
  }
View Full Code Here

TOP

Related Classes of ratpack.file.BaseDirRequiredException

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.