Package org.restlet.resource

Examples of org.restlet.resource.ResourceException


      }

      return new TupleResultImpl(columnNames, namespaces);
    }
    catch (StoreException e) {
      throw new ResourceException(e);
    }
  }
View Full Code Here


      getResponse().setStatus(SUCCESS_NO_CONTENT);
      return null;
    }
    catch (StoreException e) {
      throw new ResourceException(e);
    }
  }
View Full Code Here

      getResponse().setStatus(Status.SUCCESS_CREATED);
      return null;
    }
    catch (StoreException e) {
      throw new ResourceException(e);
    }
  }
View Full Code Here

      }

      return new TupleResultImpl(columnNames, ids);
    }
    catch (StoreConfigException e) {
      throw new ResourceException(e);
    }
  }
View Full Code Here

  {
    try {
      Model config = getRepositoryManager().getRepositoryConfig(configurationID);

      if (config == null) {
        throw new ResourceException(CLIENT_ERROR_NOT_FOUND, "No such configuration: " + configurationID);
      }

      return new ModelRepresentation(config, factory, mediaType);
    }
    catch (StoreConfigException e) {
      throw new ResourceException(e);
    }
  }
View Full Code Here

    try {
      getRepositoryManager().addRepositoryConfig(configurationID, model);
      return null;
    }
    catch (StoreException e) {
      throw new ResourceException(e);
    }
    catch (StoreConfigException e) {
      throw new ResourceException(e);
    }
    // finally {
    // ConditionalRequestInterceptor.managerModified(request);
    // }
  }
View Full Code Here

    try {
      configChanged = getRepositoryManager().removeRepositoryConfig(configurationID);
    }
    catch (StoreException e) {
      throw new ResourceException(e);
    }
    catch (StoreConfigException e) {
      throw new ResourceException(e);
    }
    finally {
      if (configChanged) {
        // ConditionalRequestInterceptor.managerModified(request);
      }
    }

    if (!configChanged) {
      throw new ResourceException(CLIENT_ERROR_NOT_FOUND, "No such configuration: " + configurationID);
    }

    return null;
  }
View Full Code Here

      parser.parse(entity.getStream(), "");

      return model;
    }
    catch (UnsupportedRDFormatException e) {
      throw new ResourceException(CLIENT_ERROR_UNSUPPORTED_MEDIA_TYPE,
          "No RDF parser available for format " + rdfFormat.getName());
    }
    catch (RDFParseException e) {
      throw new ErrorInfoException(MALFORMED_DATA, e.getMessage());
    }
    catch (IOException e) {
      throw new ResourceException(e);
    }
    catch (RDFHandlerException e) {
      throw new ResourceException(e);
    }
  }
View Full Code Here

      getConnection().begin();
      getResponse().setStatus(SUCCESS_NO_CONTENT);
      return null;
    }
    catch (StoreException e) {
      throw new ResourceException(SERVER_ERROR_INTERNAL, e);
    }
  }
View Full Code Here

      Model schemas = getRepositoryManager().getConfigTemplateManager().getSchemas();
      schemas = new ModelOrganizer(schemas).organize();
      return new ModelRepresentation(schemas, factory, mediaType);
    }
    catch (StoreConfigException e) {
      throw new ResourceException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.restlet.resource.ResourceException

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.