Package railo.runtime.config

Examples of railo.runtime.config.ConfigWebAdmin.store()


      Mapping mapping;
      for(int i=0;i<mappings.length;i++){
        mapping=mappings[i];
        if(RestUtil.isMatch(pc,mapping,dir)){
          admin.removeRestMapping(mapping.getVirtual());
          admin.store();
        }
      }
    }
      catch (Exception e) {
      throw Caster.toPageException(e);
View Full Code Here


  private static void update(PageContext pc,Resource dir, String virtual, String webAdminPassword, boolean defaultMapping) throws PageException {
    try {
      ConfigWebAdmin admin = ConfigWebAdmin.newInstance((ConfigWebImpl)pc.getConfig(),webAdminPassword);
      admin.updateRestMapping(virtual, dir.getAbsolutePath(), defaultMapping);
      admin.store();
    }
    catch (Exception e) {
      throw Caster.toPageException(e);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.