Package railo.runtime.config

Examples of railo.runtime.config.ConfigWebAdmin


  }

  public void removeDatasource(String name) throws SQLException, SecurityException {
    checkWriteAccess();
    try {
      ConfigWebAdmin admin = ConfigWebAdmin.newInstance(config(),"");
      admin.removeDataSource(name);
    } catch (Exception e) {
      // ignoriert wenn die db nicht existiert
    }
  }
View Full Code Here


     
    Resource dir=RestDeleteApplication.toResource(pc,dirPath);
    ConfigWebImpl config=(ConfigWebImpl) pc.getConfig();

    try {
      ConfigWebAdmin admin = ConfigWebAdmin.newInstance((ConfigWebImpl)pc.getConfig(),webAdminPassword);
      Mapping[] mappings = config.getRestMappings();
      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

    return null;
  }

  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

Related Classes of railo.runtime.config.ConfigWebAdmin

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.