Package org.openrdf.store

Examples of org.openrdf.store.StoreConfigException


          SailImplConfig implConfig = factory.getConfig();
          implConfig.parse(model, implNode);
          return implConfig;
        }
        else {
          throw new StoreConfigException("Unsupported Sail type: " + typeLit.getLabel());
        }
      }

      return null;
    }
    catch (ModelException e) {
      throw new StoreConfigException(e.getMessage(), e);
    }
  }
View Full Code Here


  public void validate()
    throws StoreConfigException
  {
    super.validate();
    if (sailImplConfig == null) {
      throw new StoreConfigException("No Sail implementation specified for Sail repository");
    }

    sailImplConfig.validate();
  }
View Full Code Here

        if (typeLit != null) {
          SailFactory factory = SailRegistry.getInstance().get(typeLit.getLabel());

          if (factory == null) {
            throw new StoreConfigException("Unsupported Sail type: " + typeLit.getLabel());
          }

          sailImplConfig = factory.getConfig();
          sailImplConfig.parse(model, sailImplNode);
        }
      }
    }
    catch (ModelException e) {
      throw new StoreConfigException(e.getMessage(), e);
    }
  }
View Full Code Here

      Sail sail = createSailStack(sailRepConfig.getSailImplConfig());
      return new SailRepository(sail);
    }

    throw new StoreConfigException("Invalid configuration class: " + config.getClass());
  }
View Full Code Here

    if (sailFactory != null) {
      return sailFactory.getSail(config);
    }

    throw new StoreConfigException("Unsupported Sail type: " + config.getType());
  }
View Full Code Here

    try {
      ((StackableSail)sail).setDelegate(delegateSail);
    }
    catch (ClassCastException e) {
      throw new StoreConfigException("Delegate configured but " + sail.getClass()
          + " is not a StackableSail");
    }
  }
View Full Code Here

  public void validate()
    throws StoreConfigException
  {
    super.validate();
    if (url == null) {
      throw new StoreConfigException("No URL specified for HTTP repository");
    }
  }
View Full Code Here

      for (Value obj : model.filter(implNode, SUBJECTSPACE, null).objects()) {
        subjectSpace.add(obj.stringValue());
      }
    }
    catch (ModelException e) {
      throw new StoreConfigException(e.getMessage(), e);
    }
  }
View Full Code Here

      result.setReadOnly(httpConfig.isReadOnly());
      // result.setUsernameAndPassword(httpConfig.getUsername(),
      // httpConfig.getPassword());
    }
    else {
      throw new StoreConfigException("Invalid configuration class: " + config.getClass());
    }
    return result;
  }
View Full Code Here

    throws StoreConfigException
  {
    super.validate();

    if (url == null) {
      throw new StoreConfigException("No URL specified for RdbmsStore");
    }
  }
View Full Code Here

TOP

Related Classes of org.openrdf.store.StoreConfigException

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.