Package com.apitrary.api.response

Examples of com.apitrary.api.response.DeleteResponse


    String id = resolveApitraryEntityId(entity);
    request.setId(id);

    new CascadeDeleteCapable(this).deleteCascades(entity);

    DeleteResponse response = resolveApitraryClient().send(request);
    if (HttpStatus.OK.ordinal() != response.getStatusCode()) {
      if (HttpStatus.Not_Found.ordinal() == response.getStatusCode()) {
        throw new ApitraryOrmDeleteException("Object with id " + id + " does not exist.");
      } else {
        String statusMessage = (String) new DeleteResponseUnmarshaller().unMarshall(response, entity);
        throw new ApitraryOrmDeleteException(statusMessage);
      }
View Full Code Here


    String id = resolveApitraryEntityId(entity);
    request.setId(id);

    new CascadeDeleteCapable(this).deleteCascades(entity);

    DeleteResponse response = resolveApitraryClient().send(request);
    if (HttpStatus.OK.ordinal() != response.getStatusCode()) {
      if (HttpStatus.Not_Found.ordinal() == response.getStatusCode()) {
        throw new ApitraryOrmDeleteException("Object with id " + id + " does not exist.");
      } else {
        String statusMessage = (String) new DeleteResponseUnmarshaller().unMarshall(response, entity);
        throw new ApitraryOrmDeleteException(statusMessage);
      }
View Full Code Here

TOP

Related Classes of com.apitrary.api.response.DeleteResponse

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.