Package com.brienwheeler.svc.content

Examples of com.brienwheeler.svc.content.ContentServiceConfigException


  public void setBaseDirectory(File baseDirectory)
  {
    ValidationUtils.assertNotNull(baseDirectory, "baseDirectory cannot be null");
   
    if (!baseDirectory.exists())
      throw new ContentServiceConfigException("baseDirectory does not exist: " + baseDirectory.getAbsolutePath());
    if (!baseDirectory.isDirectory())
      throw new ContentServiceConfigException("baseDirectory is not a directory: " + baseDirectory.getAbsolutePath());
    if (!baseDirectory.canWrite())
      throw new ContentServiceConfigException("baseDirectory is not writable: " + baseDirectory.getAbsolutePath());
   
    if (!this.baseDirectory.compareAndSet(null,  baseDirectory))
      throw new ContentServiceConfigException("cannot change baseDirectory");
  }
View Full Code Here

TOP

Related Classes of com.brienwheeler.svc.content.ContentServiceConfigException

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.