Package org.openrdf.repository.http.exceptions

Examples of org.openrdf.repository.http.exceptions.RepositoryReadOnlyException


  protected void addInputStreamOrReader(Object inputStreamOrReader, String baseURI, RDFFormat dataFormat,
      Resource... contexts)
    throws IOException, RDFParseException, StoreException
  {
    if (repository.isReadOnly()) {
      throw new RepositoryReadOnlyException();
    }
    // Send bytes directly to the server
    flush();
    StatementClient httpClient = client.statements();
    if (inputStreamOrReader instanceof InputStream) {
View Full Code Here


  {
    verifyIsOpen();
    verifyNotReadOnly();

    if (repository.isReadOnly()) {
      throw new RepositoryReadOnlyException();
    }
    if (repository.isIllegal(subject, predicate, object, contexts)) {
      throw new IllegalStatementException();
    }
    add(new AddStatementOperation(subject, predicate, object, contexts));
View Full Code Here

  {
    verifyIsOpen();
    verifyNotReadOnly();

    if (repository.isReadOnly()) {
      throw new RepositoryReadOnlyException();
    }
    if (!noMatch(subject, predicate, object, true, contexts)) {
      add(new RemoveStatementsOperation(subject, predicate, object, contexts));
    }
  }
View Full Code Here

  {
    verifyIsOpen();
    verifyNotReadOnly();

    if (repository.isReadOnly()) {
      throw new RepositoryReadOnlyException();
    }
    add(new ClearOperation(contexts));
  }
View Full Code Here

  {
    verifyIsOpen();
    verifyNotReadOnly();

    if (repository.isReadOnly()) {
      throw new RepositoryReadOnlyException();
    }
    add(new RemoveNamespaceOperation(prefix));
  }
View Full Code Here

  {
    verifyIsOpen();
    verifyNotReadOnly();

    if (repository.isReadOnly()) {
      throw new RepositoryReadOnlyException();
    }
    add(new ClearNamespacesOperation());
  }
View Full Code Here

  {
    verifyIsOpen();
    verifyNotReadOnly();

    if (repository.isReadOnly()) {
      throw new RepositoryReadOnlyException();
    }
    add(new SetNamespaceOperation(prefix, name));
  }
View Full Code Here

TOP

Related Classes of org.openrdf.repository.http.exceptions.RepositoryReadOnlyException

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.