Package org.openrdf.http.server

Examples of org.openrdf.http.server.ServerHTTPException


      repositoryCon.exportStatements(subj, pred, obj, useInferencing, rdfWriter, contexts);

      out.close();
    }
    catch (RDFHandlerException e) {
      throw new ServerHTTPException("Serialization error: " + e.getMessage(), e);
    }
    catch (RepositoryException e) {
      throw new ServerHTTPException("Repository error: " + e.getMessage(), e);
    }
  }
View Full Code Here


      finally {
        con.close();
      }
    }
    catch (RepositoryException e) {
      throw new ServerHTTPException(e.getMessage(), e);
    }
  }
View Full Code Here

    catch (SAXParseException e) {
      ErrorInfo errInfo = new ErrorInfo(ErrorType.MALFORMED_DATA, e.getMessage());
      throw new ClientHTTPException(SC_BAD_REQUEST, errInfo.toString());
    }
    catch (SAXException e) {
      throw new ServerHTTPException("Failed to parse transaction data: " + e.getMessage(), e);
    }
    catch (IOException e) {
      throw new ServerHTTPException("Failed to read data: " + e.getMessage(), e);
    }
    catch (RepositoryException e) {
      throw new ServerHTTPException("Repository update error: " + e.getMessage(), e);
    }
  }
View Full Code Here

    catch (RDFParseException e) {
      ErrorInfo errInfo = new ErrorInfo(ErrorType.MALFORMED_DATA, e.getMessage());
      throw new ClientHTTPException(SC_BAD_REQUEST, errInfo.toString());
    }
    catch (IOException e) {
      throw new ServerHTTPException("Failed to read data: " + e.getMessage(), e);
    }
    catch (RepositoryException e) {
      throw new ServerHTTPException("Repository update error: " + e.getMessage(), e);
    }
  }
View Full Code Here

      repositoryCon.remove(subj, pred, obj, contexts);

      return new ModelAndView(EmptySuccessView.getInstance());
    }
    catch (RepositoryException e) {
      throw new ServerHTTPException("Repository update error: " + e.getMessage(), e);
    }
  }
View Full Code Here

      finally {
        contextIter.close();
      }
    }
    catch (RepositoryException e) {
      throw new ServerHTTPException("Repository error: " + e.getMessage(), e);
    }

    TupleQueryResultWriterFactory factory = ProtocolUtil.getAcceptableService(request, response,
        TupleQueryResultWriterRegistry.getInstance());
View Full Code Here

      finally {
        iter.close();
      }
    }
    catch (RepositoryException e) {
      throw new ServerHTTPException("Repository error: " + e.getMessage(), e);
    }

    TupleQueryResultWriterFactory factory = ProtocolUtil.getAcceptableService(request, response,
        TupleQueryResultWriterRegistry.getInstance());
View Full Code Here

    RepositoryConnection repositoryCon = RepositoryInterceptor.getRepositoryConnection(request);
    try {
      repositoryCon.clearNamespaces();
    }
    catch (RepositoryException e) {
      throw new ServerHTTPException("Repository error: " + e.getMessage(), e);
    }

    return new ModelAndView(EmptySuccessView.getInstance());
  }
View Full Code Here

        request.setAttribute(REPOSITORY_ID_KEY, repositoryID);
        request.setAttribute(REPOSITORY_KEY, repository);
        request.setAttribute(REPOSITORY_CONNECTION_KEY, repositoryCon);
      }
      catch (RepositoryConfigException e) {
        throw new ServerHTTPException(e.getMessage(), e);
      }
      catch (RepositoryException e) {
        throw new ServerHTTPException(e.getMessage(), e);
      }
    }
  }
View Full Code Here

    if (repositoryCon != null) {
      try {
        repositoryCon.close();
      }
      catch (RepositoryException e) {
        throw new ServerHTTPException(e.getMessage(), e);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.openrdf.http.server.ServerHTTPException

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.