public BaseResponse(ClientResponse<String> clientResponse) { if (clientResponse != null) { status = clientResponse.getStatus(); if (clientResponse.getLocationLink() != null) { location = clientResponse.getLocationLink().getHref(); } entity = clientResponse.getEntity(String.class); headers = clientResponse.getMetadata(); } }
getResponse().setEntity(entity); getResponse().setHeaders(clientResponse.getMetadata()); if (clientResponse.getLocationLink() != null) { String location = clientResponse.getLocationLink().getHref(); getResponse().setLocation(location);