Package com.apitrary.api.response

Examples of com.apitrary.api.response.PutResponse


    String payload = marshall(entity);

    request.setRequestPayload(payload);

    PutResponse response = resolveApitraryClient().send(request);

    if (HttpStatus.No_Content.ordinal() != response.getStatusCode()) {
      if (HttpStatus.Not_Found.ordinal() == response.getStatusCode()) {
        throw new ApitraryOrmUpdateException("Cannot update object: object with given id does not exist.");
      } else {
        String statusMessage = (String) new PutResponseUnmarshaller().unMarshall(response, entity);
        throw new ApitraryOrmUpdateException(statusMessage);
      }
View Full Code Here


    String payload = marshall(entity);

    request.setRequestPayload(payload);

    PutResponse response = resolveApitraryClient().send(request);

    if (HttpStatus.No_Content.ordinal() != response.getStatusCode()) {
      if (HttpStatus.Not_Found.ordinal() == response.getStatusCode()) {
        throw new ApitraryOrmUpdateException("Cannot update object: object with given id does not exist.");
      } else {
        String statusMessage = (String) new PutResponseUnmarshaller().unMarshall(response, entity);
        throw new ApitraryOrmUpdateException(statusMessage);
      }
View Full Code Here

TOP

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

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.