* @return the action client response
*/
private ClientResponse getActionClientResponse(
EntityActionOperation entityActionOperation) {
entityActionOperation.setProxyData(createProxyData());
Builder webResource = getResource(entityActionOperation.getUri())
.queryParams(entityActionOperation.getQueryParameters())
.accept(entityActionOperation.getAcceptType())
.accept(MediaType.APPLICATION_XML_TYPE)
.type(MediaType.APPLICATION_XML_TYPE);
if (entityActionOperation.getRequestContents() != null) {
webResource = webResource.entity(
entityActionOperation.getRequestContents(),
entityActionOperation.getContentType());
} else {
webResource = webResource.header("Content-Length", "0");
}
return webResource.method(entityActionOperation.getVerb(),
ClientResponse.class);
}